|
@@ -1,20 +1,34 @@
|
|
|
-$(window).load(function(){
|
|
|
- $('mapiframe').load(function() {
|
|
|
- $('mapiframe').show()
|
|
|
- $('#maploading').hide();
|
|
|
- });
|
|
|
- $('#maploading').show();
|
|
|
- $('mapiframe').attr( "src", "https://davidawindham.com/wik/index.php?module=Widgetize&action=iframe&widget=1&moduleToWidgetize=UserCountryMap&actionToWidgetize=realtimeMap&idSite=1&period=day&date=today&disableLink=1&widget=1&token_auth=d97e3e8f34071515ad1f6e345f6035af");
|
|
|
+$('.nav-toggle').on('touchstart click', function(e) {
|
|
|
+ e.preventDefault();
|
|
|
+ $( this ).toggleClass( 'active' );
|
|
|
});
|
|
|
-
|
|
|
-function calc_map_height() {
|
|
|
- var the_height=
|
|
|
- document.getElementById('map').contentWindow.
|
|
|
- document.body.scrollHeight;
|
|
|
- document.getElementById('map').height=
|
|
|
- the_height;
|
|
|
-}
|
|
|
|
|
|
+$(function dw_hidenav() {
|
|
|
+ var headerHeight = $('.navbar').height();
|
|
|
+ $(window).on('scroll', { previousTop: 0 },
|
|
|
+ function() {
|
|
|
+ var currentTop = $(window).scrollTop();
|
|
|
+ if (currentTop < this.previousTop) {
|
|
|
+ if (currentTop > 0 && $('.navbar').hasClass('fixed')) {
|
|
|
+ $('.navbar').addClass('visible');
|
|
|
+ } else {
|
|
|
+ $('.navbar').removeClass('visible fixed');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $('.navbar').removeClass('visible');
|
|
|
+ if (currentTop > headerHeight && !$('.navbar').hasClass('fixed')) $('.navbar').addClass('fixed');
|
|
|
+ }
|
|
|
+ this.previousTop = currentTop;
|
|
|
+ }
|
|
|
+ );
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/* -----------------------------
|
|
|
(function( $ ) {
|
|
|
$.fn.timespent = function(options){
|
|
|
var urla = "https://davidawindham.com/wik/index.php?module=API&method=UserCountry.getCity&format=json&idSite=1&period=month&date=yesterday&expanded=1&token_auth=d97e3e8f34071515ad1f6e345f6035af";
|
|
@@ -39,6 +53,8 @@ function calc_map_height() {
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
-
|
|
|
$('.time-spent').timespent();
|
|
|
|
|
|
+})( jQuery );
|
|
|
+
|
|
|
+------ SAVE FOR LATER -------*/
|