<script type="text/javascript">
var content_position = $(window).scrollTop();
if ($(window).scrollTop() >= "100") {
$(".header_fixed").addClass('fixedHeader');
$(".header_fixed .logo").addClass('logosm');
}
$(window).scroll(function(){
if ($(window).scrollTop() <= "100") {
$(".header_fixed").removeClass('fixedHeader');
$(".header_fixed .logo").removeClass('logosm');
} else {
$(".header_fixed").addClass('fixedHeader');
$(".header_fixed .logo").addClass('logosm');
}
});
</script>
$( "input:checkbox" ).on("change", function() {
$('.reg').slideToggle();
});
<?php echo CFS()->form(
array(
'post_id' => false,
'post_type' => 'company',
'post_title' => 'The Title',
'post_content' => false,
'field_groups' => array('152'),
'confirmation_url' => '/successful', // redirect URL
'submit_label' => 'Submit',
));
?>
<button class="btn btn-default" id="userSettings" style="font-size: 20px;"><i class="fa fa-gear"></i>Test</button>
<div class="settings" style="display: none;">
<h1>panel settings</h1>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('#userSettings').click(function(){
$('#userSettings + .settings').slideToggle();
})
});
</script>
if (is_page('150')) {
wp_enqueue_script( 'inputmaskrt', get_template_directory_uri() . '/js/inputmaskrt.js', false, null, true );
}
<a href="picture.jpg">
<img src="picture.jpg" />
</a>
<script>
$( function()
{
$( 'a' ).imageLightbox();
});
</script>
if (localStorage.getItem('display') == 'list') {
$('#content .row > .grid-product').attr('class', 'col-md-12 product_main list-product');
$('#list-view').trigger('click');
$('#list-view').addClass('active');
} else {
$('#grid-view').trigger('click');
$('#grid-view').addClass('active');
$('#content .list-product').attr('class', 'col-md-4 col-sm-6 product_main grid-product');
}