Вход Регистрация
Файл: admin/js/dashboard2.js
Строк: 110
<?php
$(':checkbox:checked').prop('checked',false);
var 
mapData = {
                
"US"298,
                
"SA"200,
                
"AU"760,
                
"IN"200,
                
"GB"120,
            };


jQuery('#world-map-marker').vectorMap(
{
    
map'world_mill_en',
    
backgroundColor'#fff',
    
borderColor'#fff',
    
borderOpacity0.25,
    
borderWidth0,
    
color'#e6e6e6',
    
regionStyle : {
        
initial : {
          
fill '#e4ecef'
        
}
      },

    
markerStyle: {
      
initial: {
                    
r7,
                    
'fill''#fff',
                    
'fill-opacity':1,
                    
'stroke''#000',
                    
'stroke-width' 2,
                    
'stroke-opacity'0.4
                
},
                },
   
    
markers : [{
        
latLng : [21.0078.00],
        
name 'INDIA : 350'
      
      
},
      {
        
latLng : [-33.00151.00],
        
name 'Australia : 250'
        
      
},
      {
        
latLng : [36.77, -119.41],
        
name 'USA : 250'
      
      
},
      {
        
latLng : [55.37, -3.41],
        
name 'UK   : 250'
      
      
},
      {
        
latLng : [25.2055.27],
        
name 'UAE : 250'
      
      
}],
      
series: {
                    
regions: [{
                        
valuesmapData,
                        
scale: ["#03a9f3""#02a7f1"],
                        
normalizeFunction'polynomial'
                    
}]
                },
    
hoverOpacitynull,
    
normalizeFunction'linear',
    
zoomOnScrollfalse,
    
scaleColors: ['#b6d6ff''#005ace'],
    
selectedColor'#c9dfaf',
    
selectedRegions: [],
    
enableZoomfalse,
    
hoverColor'#fff',
    
    
});

 
window.addEventListener('resize', function() {
        
    });
 
 
// Real Time chart
        

        
var data = [],
            
totalPoints 100;

        function 
getRandomData() {

            if (
data.length 0)
                
data data.slice(1);

            
// Do a random walk

            
while (data.length totalPoints) {

                var 
prev data.length data[data.length 1] : 50,
                    
prev Math.random() * 10 5;

                if (
0) {
                    
0;
                } else if (
100) {
                    
100;
                }

                
data.push(y);
            }

            
// Zip the generated y values with the x values

            
var res = [];
            for (var 
0data.length; ++i) {
                
res.push([idata[i]])
            }

            return 
res;
        }

        
// Set up the control widget

        
var updateInterval 20;
        $(
"#updateInterval").val(updateInterval).change(function () {
            var 
= $(this).val();
            if (
&& !isNaN(+v)) {
                
updateInterval = +v;
                if (
updateInterval 1) {
                    
updateInterval 1;
                } else if (
updateInterval 2000) {
                    
updateInterval 2000;
                }
                $(
this).val("" updateInterval);
            }
        });

        var 
plot = $.plot("#placeholder", [ getRandomData() ], {
            
series: {
                
shadowSize0   // Drawing is faster without shadows
            
},
            
yaxis: {
                
min0,
                
max100
            
},
            
xaxis: {
                
showfalse
            
},
            
colors: ["#01c0c8"],
            
grid: {
                
color"#AFAFAF",
                
hoverabletrue,
                
borderWidth0,
                
backgroundColor'#FFF'
            
},
            
tooltiptrue,
              
resize:true,
            
tooltipOpts: {
                
content"Y: %y",
                
defaultThemefalse
            
}
        

        });

        function 
update() {

            
plot.setData([getRandomData()]);

            
// Since the axes don't change, we don't need to call plot.setupGrid()

            
plot.draw();
            
setTimeout(updateupdateInterval);
        }

        
update();
         $(
'.vcarousel').carousel({
            
interval3000
         
})
         $(
"body").trigger("resize");

//sparkline charts
$(document).ready(function() {
   var 
sparklineLogin = function() { 
       
  
        $(
"#sparkline8").sparkline([2,4,4,6,8,5,6,4,8,6,6,], {
            
type'line',
            
width'100%',
            
height'50',
            
lineColor'#fb9678',
            
fillColor'#fb9678',
            
maxSpotColor'#fb9678',
            
highlightLineColor'rgba(0, 0, 0, 0.2)',
            
highlightSpotColor'#fb9678'
        
});
        $(
"#sparkline9").sparkline([0,2,8,6,8,5,6,4,8,6,6,], {
            
type'line',
            
width'100%',
            
height'50',
            
lineColor'#01c0c8',
            
fillColor'#01c0c8',
            
minSpotColor:'#01c0c8',
            
maxSpotColor'#01c0c8',
            
highlightLineColor'rgba(0, 0, 0, 0.2)',
            
highlightSpotColor'#01c0c8'
        
});
        $(
"#sparkline10").sparkline([2,4,4,6,8,5,6,4,8,6,6,2], {
            
type'line',
            
width'100%',
            
height'50',
            
lineColor'#ab8ce4',
            
fillColor'#ab8ce4',
            
maxSpotColor'#ab8ce4',
            
highlightLineColor'rgba(0, 0, 0, 0.2)',
            
highlightSpotColor'#ab8ce4'
        
});       
   }
    var 
sparkResize;
 
        $(
window).resize(function(e) {
            
clearTimeout(sparkResize);
            
sparkResize setTimeout(sparklineLogin500);
        });
        
sparklineLogin();

});

// Slimscroll
 
$('.slimscrollcountry').slimScroll({
          
height'250',
          
position'right',
          
size"5px",
          
color'#dcdcdc',
          
      });
?>
Онлайн: 0
Реклама