📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
otelscripti.demodesign.com.tr
/
public
/
js
📝
main.js
← Geri Dön
var baseUrl = document.getElementsByTagName('base')[0].href; var language = document.getElementsByTagName('html')[0].getAttribute('lang'); var queryString = (function (a) { if (a === "") return {}; var b = {}; for (var i = 0; i < a.length; ++i) { var p = a[i].split('='); if (p.length !== 2) continue; b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " ")); } return b; })(window.location.search.substr(1).split('&')); /** * bir hata nedeniyle veya sunucudan silinmiş ya da bulunamayan bir resim olduğunda, hata göstermek yerine * placehold.it resimlerinin gösterilmesini sağlar. */ jQuery(window).load(function() { var $ = jQuery; $('img:not(".logo-img")').each(function() { if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ var ieversion=new Number(RegExp.$1) if (ieversion>=9) if (typeof this.naturalWidth === "undefined" || this.naturalWidth === 0) { this.src = "http://placehold.it/" + ($(this).attr('width') || this.width || $(this).naturalWidth()) + "x" + (this.naturalHeight || $(this).attr('height') || $(this).height()); } } else { if (!this.complete || typeof this.naturalWidth === "undefined" || this.naturalWidth === 0) { this.src = "http://placehold.it/" + ($(this).attr('width') || this.width || $(this).naturalWidth()) + "x" + (this.naturalHeight || $(this).attr('height') || $(this).height()); } } }); }); /** * android cihazlarda select boxların düzgün görünmesini sağlar. */ $(function () { var nua = navigator.userAgent; var isAndroid = (nua.indexOf('Mozilla/5.0') > -1 && nua.indexOf('Android ') > -1 && nua.indexOf('AppleWebKit') > -1 && nua.indexOf('Chrome') === -1); if (isAndroid) { $('select.form-control').removeClass('form-control').css('width', '100%'); } }); /** * linklerde target kullanmak yerine rel attribut unu kullanmamızı sağlar. * @constructor */ function blankLink() { if (!document.getElementsByTagName) return; var urls = document.getElementsByTagName("a"); var urlCount = urls.length; for (var i=0; i<urlCount; i++) { var singleLink = urls[i]; if(singleLink.getAttribute("href") && singleLink.getAttribute("rel") == "external" || singleLink.getAttribute("rel") == "nofollow") { singleLink.target = "_blank"; } } } /** * @param obj * @returns {boolean} */ isset = function(obj) { var i, max_i; if(obj === undefined) return false; for (i = 1, max_i = arguments.length; i < max_i; i++) { if (obj[arguments[i]] === undefined) { return false; } obj = obj[arguments[i]]; } return true; }; $(function () { $('.fancybox').fancybox(); $(".mask-phone").mask("0(999) 999 99 99", {placeholder: "_"}); $(".numeric").numeric(); blankLink(); $('.share-box a').on('click', function () { window.open($(this).attr('href'), 'sharewindow', 'width=600,height=400'); return false; }); //PNotify eklentisnin çalışacağı tema seçimi içindir. PNotify.prototype.options.styling = "bootstrap3"; /** * biz sizi arayalım formu */ $('.btnCallyou').on("click", function () { var name = $('input[name="fullname"]').val(), phone = $('input[name="phone"]').val(); $.post("biz-sizi-arayalim", {"fullname": name, "phone": phone}, function (e) { if (e.success) { new PNotify({ title: 'Biz Sizi Arayalım', text: e.message, type: 'success', icon: 'fa fa-phone', opacity: .8 }); $('input[name="fullname"]').val(''); $('input[name="phone"]').val(''); } else { new PNotify({ title: 'Hata', text: e.message, type: 'error', icon: 'fa fa-phone', opacity: .8 }); } }, "json"); }); /** * mail listesi formu */ $('.btnMaillist').on("click", function () { var email = $('input[name="email"]').val(); $.post("mail-listesi", {"email": email}, function (e) { if (e.success) { new PNotify({ title: 'Mail Listesi', text: e.message, type: 'success', icon: 'fa fa-envelope-o', opacity: .8 }); $('input[name="email"]').val(''); } else { new PNotify({ title: 'Hata', text: e.message, type: 'error', icon: 'fa fa-envelope-o', opacity: .8 }); } }, "json"); }); /*Tooltip*/ $('[data-toggle="tooltip"]').tooltip(); $('.bread .title').addClass('active'); /*FancyBox*/ $(".fancyBox").fancybox({ padding: 0, openEffect: 'elastic', openSpeed: 150, closeEffect: 'elastic', closeSpeed: 150, closeClick: true, helpers: { buttons: {}, thumbs: { width: 50, height: 50 } } }); /*OWL*/ var owl1 = $("#room-gallery"); owl1.owlCarousel({ items: 8, itemsDesktop: [1199, 8], itemsDesktopSmall: [979, 8], itemsTablet: [768, 4], itemsMobile: [479, 2], loop: true, pagination: false }); $("#Next").click(function () { owl1.trigger('owl.next'); }); $("#Prev").click(function () { owl1.trigger('owl.prev'); }); /** * Rezervasyon sonuç sayfası * @type {*|jQuery|HTMLElement} */ var navListItems = $('div.setup-panel div a'), allWells = $('.setup-content'), allNextBtn = $('.nextBtn'); allWells.hide(); navListItems.click(function (e) { e.preventDefault(); var $target = $($(this).attr('href')), $item = $(this); if (!$item.hasClass('disabled')) { navListItems.removeClass('btn-danger').addClass('btn-default'); $item.addClass('btn-danger'); allWells.hide(); $target.show(); $target.find('input:eq(0)').focus(); } }); allNextBtn.click(function(){ var curStep = $(this).closest(".setup-content"), curStepBtn = curStep.attr("id"), nextStepWizard = $('div.setup-panel div a[href="#' + curStepBtn + '"]').parent().next().children("a"), curInputs = curStep.find("input[type='text'],input[type='url'],input[type='email'],select,textarea"), isValid = true; $(".form-group").removeClass("has-error"); for(var i=0; i<curInputs.length; i++){ if (!curInputs[i].validity.valid){ isValid = false; $(curInputs[i]).closest(".form-group").addClass("has-error"); } } if (isValid) nextStepWizard.removeAttr('disabled').trigger('click'); }); $('div.setup-panel div a.btn-danger').trigger('click'); // Rezervasyon bitiş /** * rezervasyon formu tarih alanı **/ var d = new Date(), day = d.getDate(), month = d.getMonth(), year = d.getFullYear(); month = parseInt(month) + 1; $('.enterence input').datepicker({ todayBtn: true, language: "tr", autoclose: true, todayHighlight: true, startDate: '' + day + '.' + month + '.' + year + '' }); }); $(window).scroll(function () { if ($(window).scrollTop() > 1) { $(".navbar-header").addClass("color"); } else { $(".navbar-header").removeClass("color"); } }); function tarihDegis() { var date = document.getElementById('enter').value; var day = date.split('.'); var cDay = parseInt(day[0]) + 1; date = "" + cDay + "." + day[1] + "." + day[2] + ""; $('.release input').datepicker({ language: "tr", autoclose: true, startDate: date }); $('.release input').focus(); }
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula