Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/timer-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorSomrat <monnaf37@gmail.com>2019-01-12 06:20:34 +0300
committerSomrat <monnaf37@gmail.com>2019-01-12 06:20:34 +0300
commitafbbde20826ef413de75f71b89f247d8bd4f8a37 (patch)
treec6b22fe77ffb94d7125bdc1de222f0473affef2e /static
parentad23d8dd9d72879f19e3454724cadf70b59ff42f (diff)
added meta data, google analytics, and minified css|js
Diffstat (limited to 'static')
-rw-r--r--static/js/main.js174
1 files changed, 0 insertions, 174 deletions
diff --git a/static/js/main.js b/static/js/main.js
deleted file mode 100644
index 5579f8a..0000000
--- a/static/js/main.js
+++ /dev/null
@@ -1,174 +0,0 @@
-(function ($) {
- 'use strict';
-
- $.fn.scrollingTo = function (opts) {
- var defaults = {
- animationTime: 1000,
- easing: '',
- callbackBeforeTransition: function () {},
- callbackAfterTransition: function () {}
- };
-
- var config = $.extend({}, defaults, opts);
-
- $(this).click(function (e) {
- var eventVal = e;
- e.preventDefault();
-
- var $section = $(document).find($(this).data('section'));
- if ($section.length < 1) {
- return false;
- };
-
- if ($('html, body').is(':animated')) {
- $('html, body').stop(true, true);
- };
-
- var scrollPos = $section.offset().top;
-
- if ($(window).scrollTop() == scrollPos) {
- return false;
- };
-
- config.callbackBeforeTransition(eventVal, $section);
-
- $('html, body').animate({
- 'scrollTop': (scrollPos + 'px')
- }, config.animationTime, config.easing, function () {
- config.callbackAfterTransition(eventVal, $section);
- });
- });
- };
-
- /* ========================================================================= */
- /* Contact Form Validating
- /* ========================================================================= */
-
- $('#contact-form').validate({
- rules: {
- name: {
- required: true,
- minlength: 4
- },
- email: {
- required: true,
- email: true
- },
- subject: {
- required: false,
- },
- message: {
- required: true,
- },
- },
- messages: {
- user_name: {
- required: "Come on, you have a name don't you?",
- minlength: "Your name must consist of at least 2 characters"
- },
- email: {
- required: "Please put your email address",
- },
- message: {
- required: "Put some messages here?",
- minlength: "Your name must consist of at least 2 characters"
- },
- },
- submitHandler: function (form) {
- $(form).ajaxSubmit({
- type: "POST",
- data: $(form).serialize(),
- url: "sendmail.php",
- success: function () {
- $('#contact-form #success').fadeIn();
- },
- error: function () {
- $('#contact-form #error').fadeIn();
- }
- });
- }
- });
-
-
-}(jQuery));
-
-
-
-jQuery(document).ready(function () {
- "use strict";
- new WOW().init();
-
-
- (function () {
- jQuery('.smooth-scroll').scrollingTo();
- }());
-
-});
-
-
-
-
-$(document).ready(function () {
-
- $(window).scroll(function () {
- if ($(window).scrollTop() > 50) {
- $(".navbar-brand a").css("color", "#fff");
- $(".top-bar").removeClass("animated-header");
- } else {
- $(".navbar-brand a").css("color", "inherit");
- $(".top-bar").addClass("animated-header");
- }
- });
-
- $('.clients-logo-slider').slick({
- dots: false,
- infinite: true,
- speed: 300,
- slidesToShow: 5,
- slidesToScroll: 1,
- arrows: false,
- responsive: [
- {
- breakpoint: 1024,
- settings: {
- slidesToShow: 3,
- slidesToScroll: 1
- }
- },
- {
- breakpoint: 600,
- settings: {
- slidesToShow: 2,
- slidesToScroll: 1
- }
- }
- ]
- });
-
-
-});
-
-
-
-// fancybox
-$(".fancybox").fancybox({
- padding: 0,
-
- openEffect: 'elastic',
- openSpeed: 450,
-
- closeEffect: 'elastic',
- closeSpeed: 350,
-
- closeClick: true,
- helpers: {
- title: {
- type: 'inside'
- },
- overlay: {
- css: {
- 'background': 'rgba(0,0,0,0.8)'
- }
- }
- }
-}); \ No newline at end of file