-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.json
25 lines (23 loc) · 6.39 KB
/
template.json
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
{
"css-template": {
"all-inclusive": "* {\n\tbox-sizing: border-box;\n}",
"body": "html, body {\n\tfont-family: Arial,Helvetica,sans-serif;\n\theight: 100%;\n\tpadding: 0;\n\tmargin: 0;\n}",
"default-classes": ".bg_color {\n\tbackground-color: __bg-color__;\n}\n\ndiv#preloaded-images {\n\tposition: absolute;\n\toverflow: hidden;\n\tleft: -9999px;\n\ttop: -9999px;\n\theight: 1px;\n\twidth: 1px;\n}",
"banner-wrapper": "#banner-wrapper {\n\tbox-sizing: content-box;\n\toverflow: hidden;\n\tposition: relative;\n\twidth: __width__px;\n\theight: __height__px;\n\tborder: 1px __border-color__ solid;\n}",
"top-clicker": "#clicker {\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n\ttop: 0;\n\tleft: 0;\n\tcursor: pointer;\n\topacity: 100;\n\tz-index: __top-layer-zindex__;\n}"
},
"html-template": {
"header": "<!DOCTYPE html>\n<html = lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\">\n\t\t<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">\n\t\t<meta name=\"ad.size\" content=\"width=__width__,height=__height__\">\n\t\t<title>__show-name__</title>",
"header-css": "\n\n\t\t<!--\t\tBANNER CSS\t\t-->\n\t\t<link href\"__filename__.css\" type=\"text/css\" rel=\"stylesheet\">\n\n",
"header-enabler": "\t\t<!--\t\tJS LIBRARIES\t\t-->\n\t\t<script text=\"text/javascript\" src=\"http://s0.2mdn.net/ads/studio/Enabler.js\"></script>\n\n",
"header-gslibrary": "\t\t<!-- Attr Plugin -->\n\t\t<!-- <script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/attrplugin_1.18.0_a54a3d3ea14504b31c72fca18285014a_min.js\"></script> -->\n\t\t\t\t<!-- Beier Plugin Plugin -->\n\t\t<!-- <script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/bezierplugin_1.18.0_06c8d443aa9009a0b8d9114ed0641bca_min.js\"></script> -->\n\t\t\t\t<!-- CSS Plugin -->\n\t\t<script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/cssplugin_1.18.0_71489205621d46cbe88348eeb8fe493f_min.js\"></script>\n\t\t\t\t<!-- CSS Rule Plugin -->\n\t\t<!-- <script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/cssruleplugin_1.18.0_e0de8cf5fbc87a759452e11bcef9753e_min.js\"></script> -->\n\t\t\t\t<!-- Color Props Plugin -->\n\t\t<!-- <script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/colorpropsplugin_1.18.0_7e2ac96bb8236340923d218177f46039_min.js\"></script> -->\n\t\t\t\t<!-- Directional Rotation Plugin -->\n\t\t<!-- <script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/directionalrotationplugin_1.18.0_01f67030abd9c994ac5dc44e4f1eed81_min.js\"></script> -->\n\t\t\t\t<!-- Easel Plugin -->\n\t\t<!-- <script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/easelplugin_1.18.0_e597ee0f642c012b863d42517f711074_min.js\"></script> -->\n\t\t\t\t<!-- EasePack -->\n\t\t<!-- <script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/easepack_1.18.0_ed5816e732515f56d96a67f6a2a15ccb_min.js\"></script> -->\n\t\t\t\t<!-- EndArray Plugin -->\n\t\t<!-- <script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/endarrayplugin_1.18.0_eb7fdcb2e8dbc3fd6c01d186544a6ce3_min.js\"></script> -->\n\t\t\t\t<!-- Kinetic Plugin -->\n\t\t<!-- <script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/kineticplugin_1.18.0_1b98c65dee8b3f33f429a4f43ed2d656_min.js\"></script> -->\n\t\t\t\t<!-- Paphael Plugin -->\n\t\t<!-- <script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/raphaelplugin_1.18.0_306780064941d137b1645804c696d137_min.js\"></script> -->\n\t\t\t\t<!-- RoundProps Plugin -->\n\t\t<!-- <script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/roundpropsplugin_1.18.0_50abc741ac7e420b7f6fb7ffd86dd70b_min.js\"></script> -->\n\t\t\t\t<!-- ScrollTo Plugin -->\n\t\t<!-- <script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/scrolltoplugin_1.18.0_768758a158b78eafbb133a5ef932e9fb_min.js\"></script> -->\n\t\t\t\t<!-- Text Plugin -->\n\t\t<!-- <script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/textplugin_1.18.0_08ea1916d9caf67b128788a9c0f4f6eb_min.js\"></script> -->\n\t\t\t\t<!-- TimelineLite -->\n\t\t<!-- <script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/timelinelite_1.18.0_dbe88c20554c170a56f44600f31a97d9_min.js\"></script> -->\n\t\t\t\t<!-- TimeLineMax -->\n\t\t<script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/timelinemax_1.18.0_d3d029f5637c6d5b293e574d258b5eee_min.js\"></script>\n\t\t\t\t<!-- TweenLite -->\n\t\t<!-- <script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/tweenlite_1.18.0_56fa823cfbbef1c2f4d4346f0f0e6c3c_min.js\"></script> -->\n\t\t\t\t<!-- TweenMax -->\n\t\t<script type=\"text/javascript\" src=\"https://s0.2mdn.net/ads/studio/cached_libs/tweenmax_1.18.0_499ba64a23378545748ff12d372e59e9_min.js\"></script>\n",
"head-body": "\t</head>\n\n\t<body>\n\t\t<div id=\"banner-wrapper\" class=\"bg_color\">\n\t\t\t<div id=\"clicker\"></div>",
"generate-content": "__yeild_to_content__",
"closing": "\n\t</div>\n<!-- CUSTOM BANNER SCRIPTS/LIBS -->\n\t<script text=\"text/javascript\" src=\"__filename__.js\"></script>\n\t</body>\n</html>"
},
"js-template": {
"setup-top": "if (Enabler.isInitialized()) {\n\tenablerInitHandler();\n} else {\n\tEnabler.addEventListener(studio.events.StudioEvent.INIT, enablerInitHandler);\n}\n\nfunction enablerInitHandler() {\n\t\"use strict\";\n\t// If true, start function. If false, listen for PAGE_LOADED.\n\tif (Enabler.isPageLoaded()) {\n\t\tpageLoadedHandler();\n\t} else {\n\t\tEnabler.addEventListener(studio.events.StudioEvent.PAGE_LOADED, pageLoadedHandler);\n\t}\n}\n\nfunction pageLoadedHandler() {\n\t\"use stric\";\n\n\tconsole.log('page loaded');\n// Load in additional assets or add animation/video\n\n\t// Check if ad is visiable on the page\n\tif (!Enabler.isVisible()) {\n\t\tEnabler.addEventListener(studio.events.StudioEvent.VISIBLE, adVisible);\n\t} else {\n\t\tadVisible();\n\t}\n}\n\nfunction adVisible() {\n\t\"use strict\";\n",
"generate-content": "__yeild_to_content__",
"setup-bottom": "\n\tCSSPlugin.defaultForce3D = true;\tdocument.getElementById('clicker').addEventListener('click', bgExitHandler, false);\n}\n\nfunction bgExitHandler(e) {\n\t\"use strict\";\n\tEnabler.exit('Default Exit');\n\t//Enabler.exitOverride('Background Exit', 'https://github.com/pxlcty/h5_banner_tool');\n}"
}
}