Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
JasminDreasond authored Apr 10, 2018
1 parent 1691043 commit 23730a4
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 95 deletions.
3 changes: 2 additions & 1 deletion everywhere.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@
<script type="text/javascript" src="js/browserponies.js" id="browser-ponies-script"></script>
<script type="text/javascript" src="js/gui-common.js"></script>
<script type="text/javascript" src="js/everywhere.js"></script>
<script type="text/javascript" src="js/everywhere_t.js"></script>
</head>

<body onload="loadPage();init();loadConfig();">
<body>
<iframe id="iframe" border="0"></iframe>

<div id="buttons">
Expand Down
3 changes: 0 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,6 @@ <h2>License</h2>

</div>

<!--<div id="pc_m_container" style="position: fixed; width: 450px; height: 30px; background: white; padding: 10px; margin: 0px; border-radius: 5px; color: rgb(41, 66, 86); font-weight: bold; font-size: 16px; opacity: 0.9; box-shadow: rgba(0, 0, 0, 0.4) 2px 2px 12px; left: 458px; top: 311px;"><div id="pc_m_barcontainer" style="margin: 0px; padding: 0px; border-style: none; width: 100%; height: 100%; background: rgb(216, 216, 216); border-radius: 5px;"><div id="pc_m_bar" style="margin: 0px; padding: 0px; border-style: none; width: 450px; height: 100%; background: rgb(155, 214, 244); border-radius: 5px;"></div></div><div id="pc_m_label" style="position: absolute; margin: 0px; padding: 0px; border-style: none; top: 13px; left: 0px; width: 100%; text-align: center;">Loading Ponies… 100%</div></div> -->

<script type="text/javascript" src="js/bottom.js"></script>
</body>

</html>
133 changes: 42 additions & 91 deletions js/everywhere_b.js
Original file line number Diff line number Diff line change
@@ -1,91 +1,42 @@
jQuery("#start").click(function() {
startPonies();
void(0);
});

jQuery("#stop").click(function() {
stopPonies();
void(0);
});

jQuery("#settings").click(function() {
toggleSettings();
void(0);
});

jQuery("#url").click(function() {
this.select();
});


jQuery("#speedi").click(function() {
increaseNumberField.call($('speed'));
});

jQuery("#speedd").click(function() {
decreaseNumberField.call($('speed'));
});

jQuery("#speaki").click(function() {
increaseNumberField.call($('speak'));
});

jQuery("#speakd").click(function() {
decreaseNumberField.call($('speak'));
});

jQuery("#volumei").click(function() {
increaseNumberField.call($('volume'));
});

jQuery("#volumed").click(function() {
decreaseNumberField.call($('volume'));
});

jQuery("#fpsi").click(function() {
increaseNumberField.call($('fps'));
});

jQuery("#fpsd").click(function() {
decreaseNumberField.call($('fps'));
});

jQuery("#fadei").click(function() {
increaseNumberField.call($('fade'));
});

jQuery("#faded").click(function() {
decreaseNumberField.call($('fade'));
});

jQuery("#addcat").click(function() {
showCategorySelect();
});

jQuery("#removeall").click(function() {
removeAllCategories();
});

jQuery("#setallzero").click(function() {
setAllZero();
});

jQuery("#enableaudio, #showfps, #progressbar").change(function() {
updateConfig();
});

jQuery("#dontspeak").change(function() {
updateDontSpeak(this.checked);
});

jQuery("#speed, #speak, #volume, #fps, #fade").change(function() {
numberFieldChanged.call(this, event);
});

jQuery("#editurl").submit(function(event) {
location.hash = $('url').value;
hideSettings();
return false;
});

jQuery('[data-toggle="tooltip"]').tooltip();
jQuery("body").ready(function() {

loadPage();
init();
loadConfig();

jQuery("#start").click(function() { startPonies();
void(0); });
jQuery("#stop").click(function() { stopPonies();
void(0); });
jQuery("#settings").click(function() { toggleSettings();
void(0); });
jQuery("#url").click(function() { this.select(); });


jQuery("#speedi").click(function() { increaseNumberField.call($('speed')); });
jQuery("#speedd").click(function() { decreaseNumberField.call($('speed')); });
jQuery("#speaki").click(function() { increaseNumberField.call($('speak')); });
jQuery("#speakd").click(function() { decreaseNumberField.call($('speak')); });
jQuery("#volumei").click(function() { increaseNumberField.call($('volume')); });
jQuery("#volumed").click(function() { decreaseNumberField.call($('volume')); });
jQuery("#fpsi").click(function() { increaseNumberField.call($('fps')); });
jQuery("#fpsd").click(function() { decreaseNumberField.call($('fps')); });
jQuery("#fadei").click(function() { increaseNumberField.call($('fade')); });
jQuery("#faded").click(function() { decreaseNumberField.call($('fade')); });

jQuery("#addcat").click(function() { showCategorySelect(); });
jQuery("#removeall").click(function() { removeAllCategories(); });
jQuery("#setallzero").click(function() { setAllZero(); });
jQuery("#enableaudio, #showfps, #progressbar").change(function() { updateConfig(); });
jQuery("#dontspeak").change(function() { updateDontSpeak(this.checked); });
jQuery("#speed, #speak, #volume, #fps, #fade").change(function() { numberFieldChanged.call(this, event); });

jQuery("#editurl").submit(function(event) {
location.hash = $('url').value;
hideSettings();
return false;
});

jQuery('[data-toggle="tooltip"]').tooltip();

});
34 changes: 34 additions & 0 deletions js/top.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,39 @@ jQuery("body").ready(function() {
.on("dragleave", function() { dragleaveDropzone.call(this, event); })
.on("mousemove", function() { mousemoveDropzone.call(this, event); });

jQuery("#bt_start").click(function() {
BrowserPonies.start();
void(0);
});
jQuery("#bt_stop").click(function() {
BrowserPonies.stop();
void(0);
});
jQuery("#bt_pause").click(function() {
BrowserPonies.pause();
void(0);
});
jQuery("#bt_resume").click(function() {
BrowserPonies.resume();
void(0);
});
jQuery("#bt_toggle").click(function() {
BrowserPonies.togglePoniesToBackground();
void(0);
});
jQuery("#bt_removeall").click(function() {
BrowserPonies.unspawnAll();
BrowserPonies.stop();
void(0);
});
jQuery('[data-toggle="tooltip"]').tooltip();

/*jQuery("body").append(
jQuery("<div>", { id: "scrollup", class: "glyphicon glyphicon-arrow-up" }).click(function() {
jQuery("html, body").animate({ scrollTop: 0 }, "slow");
}).affix({ offset: { top: 575 } })
);*/

});

0 comments on commit 23730a4

Please sign in to comment.