Create app.js
This commit is contained in:
parent
7785c91c5d
commit
02552ac5a9
39
app.js
Normal file
39
app.js
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
|
||||||
|
jQuery(document).ready(function(){
|
||||||
|
var waypoint = jQuery('#jmm-counter-181').waypoint(function() {
|
||||||
|
jQuery('#jmm-counter-181 .jmm-timer').countTo({
|
||||||
|
formatter: function (value, options) {
|
||||||
|
return value.toFixed(options.decimals).toString().split(".").join(",").replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.destroy();
|
||||||
|
}, {
|
||||||
|
offset: 'bottom-in-view'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- META FOR IOS & HANDHELD -->
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
||||||
|
<style type="text/stylesheet">
|
||||||
|
@-webkit-viewport { width: device-width; }
|
||||||
|
@-moz-viewport { width: device-width; }
|
||||||
|
@-ms-viewport { width: device-width; }
|
||||||
|
@-o-viewport { width: device-width; }
|
||||||
|
@viewport { width: device-width; }
|
||||||
|
</style>
|
||||||
|
<script type="text/javascript">
|
||||||
|
//<![CDATA[
|
||||||
|
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
|
||||||
|
var msViewportStyle = document.createElement("style");
|
||||||
|
msViewportStyle.appendChild(
|
||||||
|
document.createTextNode("@-ms-viewport{width:auto!important}")
|
||||||
|
);
|
||||||
|
document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
|
||||||
|
}
|
||||||
|
//]]>
|
||||||
|
</script>
|
||||||
|
<meta name="HandheldFriendly" content="true"/>
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="YES"/>
|
Loading…
Reference in New Issue
Block a user