Skip to content

Commit c28aaa6

Browse files
Deploy: stop roblox. 92fb27e
0 parents  commit c28aaa6

File tree

17,862 files changed

+5729994
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

17,862 files changed

+5729994
-0
lines changed

.nojekyll

Whitespace-only changes.

2048/c/favicon.ico

90.7 KB
Binary file not shown.

2048/c/index.html

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
6+
<!-- Component components/gtag_events -->
7+
8+
<script>
9+
window.ccPorted = {
10+
...(window.ccPorted || {}),
11+
gameID: (("2048_cupcakes").length > 0) ? "2048_cupcakes" : "ccported"
12+
}
13+
window.gameID = window.ccPorted.gameID;
14+
</script>
15+
16+
17+
<!-- Component components/gtag -->
18+
<!-- supabase -->
19+
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js"></script>
20+
<script>
21+
window.ccPorted = {
22+
version: "342.2024-12-16T17:11:00.076Z",
23+
...(window.ccPorted || {})
24+
};
25+
try {
26+
const SUPABASE_URL = "https://dahljrdecyiwfjgklnvz.supabase.co";
27+
const SUPABASE_ANON_KEY =
28+
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRhaGxqcmRlY3lpd2ZqZ2tsbnZ6Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjgyNjE3NzMsImV4cCI6MjA0MzgzNzc3M30.8-YlXqSXsYoPTaDlHMpTdqLxfvm89-8zk2HG2MCABRI";
29+
window.ccSupaClient = supabase.createClient(
30+
SUPABASE_URL,
31+
SUPABASE_ANON_KEY
32+
);
33+
} catch (e) {
34+
alert(
35+
"Error Initializing. Please refresh. If this error persists, try a different domain." +
36+
"\n\n" +
37+
e.stack
38+
);
39+
console.log(e);
40+
}
41+
</script>
42+
43+
<!-- large.js -->
44+
<script src="/assets/scripts/helpers.js?i=8"></script>
45+
<script src="/assets/scripts/large.js?i=7"></script>
46+
<script src="/assets/scripts/stateHandler.js?i=6"></script>
47+
48+
<!-- external (gtag) -->
49+
<script
50+
async
51+
src="https://www.googletagmanager.com/gtag/js?id=G-DJDL65P9Y4"
52+
></script>
53+
<script>
54+
window.dataLayer = window.dataLayer || [];
55+
function gtag() {
56+
dataLayer.push(arguments);
57+
}
58+
gtag("js", new Date());
59+
60+
gtag("config", "G-DJDL65P9Y4");
61+
window.gtag = gtag;
62+
</script>
63+
64+
<!-- End component components/gtag -->
65+
66+
67+
<script src="/gtag_events.js?v=004" data-gameid="2048_cupcakes"></script>
68+
<!-- End component components/gtag_events -->
69+
70+
71+
<meta charset="utf-8">
72+
<title>2048 CUPCAKES | Unblocked on CCPorted</title>
73+
<meta name = "description" content="2048 Cupcakes is a cute cupcake-based version of 2048. Join cupcakes together to get the best cupcake. Unblocked and free to play." />
74+
<link href="style/main.css" rel="stylesheet" type="text/css">
75+
<link rel="shortcut icon" href="favicon.ico">
76+
<link rel="apple-touch-icon" href="meta/apple-touch-icon.png">
77+
<meta name="apple-mobile-web-app-capable" content="yes">
78+
<meta name="apple-mobile-web-app-status-bar-style" content="black">
79+
80+
<meta name="HandheldFriendly" content="True">
81+
<meta name="MobileOptimized" content="320">
82+
<meta name="viewport"
83+
content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0, maximum-scale=1, user-scalable=no, minimal-ui">
84+
<meta name="format-detection" content="telephone=no" />
85+
</head>
86+
87+
<body>
88+
<div class="container">
89+
<div class="heading">
90+
<div class="title-container">
91+
<h1 class="title">2048 <small>Cupcakes</small></h1>
92+
</div>
93+
<div class="scores-container">
94+
<div class="score-points">0</div>
95+
<div class="best-points">0</div>
96+
</div>
97+
<div class="scores-container">
98+
<div class="score-container">0 Kcal</div>
99+
<div class="best-container">0 Kcal</div>
100+
</div>
101+
</div>
102+
103+
<div class="above-game">
104+
<p class="game-intro">Join tiles and destroy <strong>EMPIRE!</strong></p>
105+
<a class="restart-button">New Game</a>
106+
</div>
107+
108+
<div class="game-container">
109+
<div class="game-message">
110+
<p></p>
111+
<div class="lower">
112+
<a class="keep-playing-button">Keep going</a>
113+
<a class="retry-button">Retry</a>
114+
<div class="score-sharing"></div>
115+
</div>
116+
</div>
117+
118+
<div class="grid-container">
119+
<div class="grid-row">
120+
<div class="grid-cell"></div>
121+
<div class="grid-cell"></div>
122+
<div class="grid-cell"></div>
123+
<div class="grid-cell"></div>
124+
</div>
125+
<div class="grid-row">
126+
<div class="grid-cell"></div>
127+
<div class="grid-cell"></div>
128+
<div class="grid-cell"></div>
129+
<div class="grid-cell"></div>
130+
</div>
131+
<div class="grid-row">
132+
<div class="grid-cell"></div>
133+
<div class="grid-cell"></div>
134+
<div class="grid-cell"></div>
135+
<div class="grid-cell"></div>
136+
</div>
137+
<div class="grid-row">
138+
<div class="grid-cell"></div>
139+
<div class="grid-cell"></div>
140+
<div class="grid-cell"></div>
141+
<div class="grid-cell"></div>
142+
</div>
143+
</div>
144+
145+
<div class="tile-container">
146+
147+
</div>
148+
</div>
149+
150+
<p class="game-explanation">
151+
<strong class="important">How to play:</strong> Use your <strong>arrow keys</strong> to move the tiles. When two
152+
tiles with the same symbol touch, they <strong>get promoted!</strong>
153+
</p>
154+
<hr>
155+
<p class="tile-legend"><strong class="important">Tile Legend:</strong></p>
156+
<hr>
157+
<p class="disclaimer">
158+
</p>
159+
<hr>
160+
<p class="credits">
161+
Cupcakes images by <a href="http://www.georgetowncupcake.com/"
162+
title="Georgetown Cupcake | DC Cupcakes | About">Georgetown Cupcake</a>.
163+
</p>
164+
</div>
165+
166+
<script src="js/bind_polyfill.js"></script>
167+
<script src="js/classlist_polyfill.js"></script>
168+
<script src="js/animframe_polyfill.js"></script>
169+
<script src="js/l10n.js"></script>
170+
<script src="js/localization.js"></script>
171+
<script src="js/keyboard_input_manager.js"></script>
172+
<script src="js/html_actuator.js"></script>
173+
<script src="js/grid.js"></script>
174+
<script src="js/tile.js"></script>
175+
<script src="js/local_storage_manager.js"></script>
176+
<script src="js/game_manager.js"></script>
177+
<script src="js/application.js"></script>
178+
179+
</body>
180+
181+
</html>

2048/c/js/animframe_polyfill.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
(function() {
2+
var lastTime = 0;
3+
var vendors = ['webkit', 'moz'];
4+
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
5+
window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame'];
6+
window.cancelAnimationFrame =
7+
window[vendors[x]+'CancelAnimationFrame'] || window[vendors[x]+'CancelRequestAnimationFrame'];
8+
}
9+
10+
if (!window.requestAnimationFrame) {
11+
window.requestAnimationFrame = function(callback, element) {
12+
var currTime = new Date().getTime();
13+
var timeToCall = Math.max(0, 16 - (currTime - lastTime));
14+
var id = window.setTimeout(function() { callback(currTime + timeToCall); },
15+
timeToCall);
16+
lastTime = currTime + timeToCall;
17+
return id;
18+
};
19+
}
20+
21+
if (!window.cancelAnimationFrame) {
22+
window.cancelAnimationFrame = function(id) {
23+
clearTimeout(id);
24+
};
25+
}
26+
}());

2048/c/js/application.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Wait till the browser is ready to render the game (avoids glitches)
2+
window.requestAnimationFrame(function () {
3+
new GameManager(4, KeyboardInputManager, HTMLActuator, LocalStorageManager);
4+
});

2048/c/js/bind_polyfill.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Function.prototype.bind = Function.prototype.bind || function (target) {
2+
var self = this;
3+
return function (args) {
4+
if (!(args instanceof Array)) {
5+
args = [args];
6+
}
7+
self.apply(target, args);
8+
};
9+
};

2048/c/js/classlist_polyfill.js

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
(function () {
2+
if (typeof window.Element === "undefined" ||
3+
"classList" in document.documentElement) {
4+
return;
5+
}
6+
7+
var prototype = Array.prototype,
8+
push = prototype.push,
9+
splice = prototype.splice,
10+
join = prototype.join;
11+
12+
function DOMTokenList(el) {
13+
this.el = el;
14+
// The className needs to be trimmed and split on whitespace
15+
// to retrieve a list of classes.
16+
var classes = el.className.replace(/^\s+|\s+$/g, '').split(/\s+/);
17+
for (var i = 0; i < classes.length; i++) {
18+
push.call(this, classes[i]);
19+
}
20+
}
21+
22+
DOMTokenList.prototype = {
23+
add: function (token) {
24+
if (this.contains(token)) return;
25+
push.call(this, token);
26+
this.el.className = this.toString();
27+
},
28+
contains: function (token) {
29+
return this.el.className.indexOf(token) != -1;
30+
},
31+
item: function (index) {
32+
return this[index] || null;
33+
},
34+
remove: function (token) {
35+
if (!this.contains(token)) return;
36+
for (var i = 0; i < this.length; i++) {
37+
if (this[i] == token) break;
38+
}
39+
splice.call(this, i, 1);
40+
this.el.className = this.toString();
41+
},
42+
toString: function () {
43+
return join.call(this, ' ');
44+
},
45+
toggle: function (token) {
46+
if (!this.contains(token)) {
47+
this.add(token);
48+
} else {
49+
this.remove(token);
50+
}
51+
52+
return this.contains(token);
53+
}
54+
};
55+
56+
window.DOMTokenList = DOMTokenList;
57+
58+
function defineElementGetter(obj, prop, getter) {
59+
if (Object.defineProperty) {
60+
Object.defineProperty(obj, prop, {
61+
get: getter
62+
});
63+
} else {
64+
obj.__defineGetter__(prop, getter);
65+
}
66+
}
67+
68+
defineElementGetter(HTMLElement.prototype, 'classList', function () {
69+
return new DOMTokenList(this);
70+
});
71+
})();

0 commit comments

Comments
 (0)