PHP Classes

File: assets/javascript/functions.js

Recommend this page to a friend!
  Classes of Laudir Bispo   PHP Real Estate Website   assets/javascript/functions.js   Download  
File: assets/javascript/functions.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Real Estate Website
Manage the properties of a real estate business
Author: By
Last change:
Date: 3 years ago
Size: 2,091 bytes
 

Contents

Class file image Download
// JavaScript Document $(document).ready(function() { 'use strict'; $('#open-sidebar').click(function (event) { event.preventDefault(); $('.sidebar-categorias').animate({right: '0'}, 600, "linear"); }); $('#close-sidebar').click(function (event) { event.preventDefault(); $('.sidebar-categorias').animate({right: '-100%'}, 600, "linear"); }); }); //**************************************************************************** //************************************************ // função universal para submit de formulários //******************************************************************************** // news slide vertical function abrir(URL) { 'use strict'; var width = 370; var height = 80; var left = 99; var top = 99; window.open(URL,'janela', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no'); } //******************************************************************************** $(function() { 'use strict'; var nav = $('.menu-principal'); var nocols = $('.hidden-scroll'); $(window).scroll(function () { if ($(this).scrollTop() > 101) { nocols.addClass("hidden-xs"); nav.addClass("menu-fixo"); } else { nocols.removeClass("hidden-xs"); nav.removeClass("menu-fixo"); } }); }); //**************************************************************************** $(document).on('click', '.social-share', function(event){ 'use strict'; event.preventDefault(); var url = $(this).attr('data-url'); var width = $(this).attr('data-width'); var height = $(this).attr('data-height'); var left = 99; var top = 99; window.open(url,'janela', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no'); }); //********************************************************************************