@IsaacB1/

flashmath1 page creator

Python

No description

fork
loading
Files
  • main.py
  • data.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from data import *
f = open('out.txt','w') 
f.write("<html>\n")
f.write("<head>\n")
f.write("<title>" + game.all_caps + " unblocked - FLASHMATH1.github.io</title>\n")
f.write("<meta charset=\"utf-8\">\n")
f.write("<meta name=\"Description\" content=\"" + game.all_caps + " is one of many unblocked games located at FLASHMATH1.github.io\">\n")
f.write("<meta name=\"google-site-verification\" content=\"SUOhYrHR417hC2DHTgJY21VGtumjqjT9bQjqeQUTreA\"/>\n")
f.write("<meta name='url' content='https://flashmath1.github.io/" + game.url + "'>\n")
f.write("<meta name='keywords' content='games, io games, io games unblocked, " + game.lowercase + " games, " + game.category + " games, " + game.lowercase + ", " + game.lowercase + " unblocked,  unblocked games, unblocked games, unblockedgames, cool math, cool math games, coolmath, coolmathgames, unblocked games 66, unblocked games 77, unblocked games 99, gamesunblocked, flash, games, flash games, flashmath1, flash math 1, flashmathone, flash math one, flashmath, flash math, fun games, fun, games, flash, math, one, 1'>\n")
f.write("<meta name='owner' content='I. Beverly'>\n")
f.write("<meta name='language' content='ES'>\n")
f.write("<meta name='subject' content='Games'>\n")
f.write("<meta name='author' content='I. Beverly, [email protected]'>\n")
f.write("<script src=\"//inc.freefind.com/inc/ffse-overlay.min.js\" async></script>\n")
f.write("<script src=\"https://code.jquery.com/jquery-1.10.2.js\"></script>\n")
f.write("<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n")
f.write("<style>#advertisement { background-color: white; width: 720px; padding: 10px; margin: 10px; }</style>\n")
f.write("<script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-124591787-1\"></script>\n")
f.write("<script>")
f.write("window.dataLayer = window.dataLayer || [];\n")
f.write("function gtag(){dataLayer.push(arguments);}\n")
f.write("gtag('js', new Date());\n")
f.write("gtag('config', 'UA-124591787-1');\n")
f.write("</script>\n")
f.write("<style>\n")
f.write(".main {\n")
f.write("margin: auto;\n")
f.write("align: center;\n")
f.write("}\n")
f.write("</style>\n")
f.write("<body>\n")
f.write("<div id=\"navbar\"></div>\n")
f.write("<div class=\"main\">\n")
f.write("<h1>" + game.standard + "</h1>\n")
f.write("<!-- Embed Code -->\n<center\n>" + '<div id="preloader"><iframe src="preloader.html" height="500" width="800"></iframe></div>' + "\n</center>\n")
f.write("<center>\n")
f.write("<div id=\"advertisement\" align=center>Advertisement:<br></div>\n")
f.write("<script>\n")
f.write("$(\"#navbar\").load(\"nav_bar.html\"); \n")
f.write('var el = document.getElementById("preloader");\n')
f.write("var newEl = document.createElement('div');\n")
f.write("newEl.innerHTML = '" + game.embed + "'\n")
f.write("<script>\n")
f.write("setTimeout(function(){\n")
f.write("el.parentNode.replaceChild(newEl, el);\n")
f.write("}, 5200);\n")
f.write("</script>\n")
f.write("</body>\n")
f.write("</html>\n")
f.close()
print("Finished")