Skip to content

Commit

Permalink
Fix wrong GET-Request URL / Version 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
robflop committed Dec 18, 2016
1 parent 0db6ed1 commit deb6cf9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![License](https://img.shields.io/badge/License-MPL-blue.svg)](https://github.com/robflop/Megumin/blob/master/LICENSE)
![Version](https://img.shields.io/badge/Version-1.2-blue.svg)
![Version](https://img.shields.io/badge/Version-1.3-blue.svg)

>Original: https://megumin.love
Expand Down Expand Up @@ -41,3 +41,7 @@ Previous sounds amount: 12

New sounds amount: 13

## Changing the Interval at which the counter updates:
- Open index.php and change "1500" on line 72 to your desired length.
- Unit used is milliseconds, 1500ms stand for 1,5s.

4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<script>
$(document).ready(function () { // Wait for document to finish loading
setInterval(function(){
$.get("https://american.megumin.love/includes/get_cache.php?update=1&t=" + (+(new Date()))).done(function(result){ // GET request the memcached value
$.get("https://megumin.love/includes/get_cache.php?update=1&t=" + (+(new Date()))).done(function(result){ // GET request the memcached value
var ele = $("#counter");
var currentValue = +(ele.text());
var next = +result;
Expand All @@ -73,7 +73,7 @@
});
</script>
<button id="button" onclick="ga('send', 'event', 'Button', 'click');">やめろ!!</button>
<a href="version.html" id="version" class="mobile-scale">[ver1.2]</a>
<a href="version.html" id="version" class="mobile-scale">[ver1.3]</a>
<!-- Share buttons-->
<span class="share-buttons-frame">
<span class="share-buttons"><a href="https://twitter.com/intent/tweet?text=Megumin%20Fansite%21%20Check%20it%20out%21&amp;via=robflop98&amp;url=https%3A%2F%2Fmegumin.love" onclick="window.open(this.href, '', 'width=650, height=450, menubar=no, toolbar=no, scrollbars=yes'); ga('send', 'event', 'Twitter', 'click'); return false; ">
Expand Down
6 changes: 6 additions & 0 deletions version.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ <h2>Version 1.2 -- 05.11.2016</h2>
<p>Well, I sure haven't done anything in a long time. This update makes the switch from MySQL to SQLite, introduces a whole bunch of new sounds aswell as minor improvements to the CSS and HTML. And a little information: I plan on adding more sounds once Season 2 goes live, so stay tuned for that!</p>
</div>
<hr>
<div class="version-box">
<h2>Version 1.3 - 18.12.2016</h2>
<p>It is finally time -- the website now has live updates for the counter! Never refresh the page just to see if anyone besides you has clicked the button ever again, just sit back and watch!
This version also adds a soundboard for all your megumin-needs, whenever and whereever you want, so go wild with your favorites. In addition several minor adjustments have been made, which however do not add any extra functionality.</p>
</div>
<hr>
<a class="backlink" href="#">Back up</a>
<hr>
</div>
Expand Down

0 comments on commit deb6cf9

Please sign in to comment.