This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //old version, works not correctly | |
| $(document).on('DOMNodeInserted', function (e) { | |
| if ($('.new')) { | |
| $('.but').attr("disabled", true); | |
| alert('!!!'); | |
| } | |
| }); | |
| $(document).on('DOMNodeRemoved', function (e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var myModule = (function() { | |
| //listening events | |
| var _setUpListeners = function() { | |
| }; | |
| //initialize module | |
| return { | |
| init: function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.ajax({ | |
| url: '/path/to/file', | |
| type: 'default GET (POST)', | |
| dataType: 'default: Intelligent Guess (json, script, xml)', | |
| data: {param1: 'value1'}, | |
| }) | |
| .done(function(){ | |
| console.log('success'); | |
| }) | |
| .fail(function(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var svgSprite = require("gulp-svg-sprites"); | |
| gulp.task('sprites', function () { | |
| return gulp.src('assets/svg/*.svg') | |
| .pipe(svgSprite()) | |
| .pipe(gulp.dest("assets")); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //usage: @include shift([property],[duration],[easing]); | |
| @mixin shift($property: all, $duration: .3s, $ease: linear){ | |
| -webkit-transition: $property $duration $ease; | |
| -moz-transition: $property $duration $ease; | |
| -o-transition: $property $duration $ease; | |
| transition: $property $duration $ease; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var gulp = require('gulp'), | |
| sass = require('gulp-sass'), | |
| browsersync = require('browser-sync'), | |
| autoprefixer = require('gulp-autoprefixer'), | |
| notify = require('gulp-notify'); | |
| gulp.task('browser-sync', function() { | |
| browsersync({ | |
| port: 9000, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(window).scroll(function(){ | |
| var hScroll = $(this).scrollTop(); | |
| //console.log(hScroll); | |
| $('.logo').css({ | |
| 'transform': 'translate(0px, '+ hScroll/4 +'%)' | |
| }); | |
| $('.station').css({ | |
| 'transform': 'translate(0px, '+ hScroll/6 +'%)' | |
| }); | |
| $('.cosmo').css({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @mixin placeholder() | |
| input::-webkit-input-placeholder | |
| @content | |
| input:-moz-placeholder | |
| @content | |
| input::-moz-placeholder | |
| @content | |
| input:-ms-input-placeholder | |
| @content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
| <script defer src="https://use.fontawesome.com/releases/v5.0.2/js/all.js"></script> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | |
| <!-- ADDITIONAL STYLESHEET HERE --> | |
| <title>SITE NAME</title> | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://codepen.io/rulincab/pen/jKBjzJ | |
| https://codepen.io/tilenp/pen/XadxPo |
NewerOlder