$( '.wmd-view' ).outerWidth( true );
var height = $(window).height(),
width = $(window).width();
if (height > 600 && width > 1900) {
$('.....').animate({
param1: value1,
param2: value2},
speed, function() {
});
} else {
$('.....').animate({
param1: value1,
param2: value2},
speed, function() {
});
};
$('.....').animate
$.each( $("#mytable tr"), function(index, val) {
var _text = val.text();
});
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
Контент
</div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
корзина
</div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
категории
</div>
</div>
</div>
</div>
</div>
display: none;
opacity: 0;
<div style="display: none;">счетчик</div>
$( 'button' ).on( 'click', function {
$( 'img' ).addClass( '.media-container' );
} );
$('.search').on('click', function(){
var pl = $('.search').attr('placeholder'),
text = 'Ку ку';
if(pl != text){
$('.otrasl').append(" "+pl);
$('.search').attr('placeholder', text);
}
$('.search').on('click', function(){
$('.sektor').append(" "+text);
});
});
function load(mod,vars,div)
{
if(typeof div === 'undefined'){div = 'mainload';}
var jqxhr = $.get( "/hendler.php?mod="+mod+"&page="+vars, function(data) {
$('#'+div).html(data)
allFuncs()
ajaxNavigation = true;
// init();
})
}
window.onload=function(){
window.setTimeout(function(){
window.addEventListener("popstate", function(e) {
var l = (location.pathname || '') + (location.search || '');
reLoaction(l,1,1);
e.preventDefault();
},false);
},1);
}
function init()
{
old_loc = (location.pathname || '') + (location.search || '');
$("a:not([href^='#']):not([target='_blank']):not([href$='/rss/']):not([href^='mailto\:']):not([href^='#'])").on('click', function(e){return false;});
$("a:not([href^='#']):not([target='_blank']):not([href$='/rss/']):not([href^='mailto\:']):not([href^='#'])").on('click', function(event){
var href = $(this).attr('href');
reLoaction(href,1);
});