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
/* | |
Package.json | |
{ | |
"name": "gulpdev", | |
"version": "0.0.1", | |
"description": "", | |
"main": "index.php", | |
"scripts": { | |
"dev": "gulp" |
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
export default function slugify(text) { | |
const a = 'àáäâèéëêìíïîòóöôùúüûñçßÿœæŕśńṕẃǵǹḿǘẍźḧ·/_,:;'; | |
const b = 'aaaaeeeeiiiioooouuuuncsyoarsnpwgnmuxzh------'; | |
const p = new RegExp(a.split('').join('|'), 'g'); | |
/* eslint-disable */ | |
return text | |
.toString() | |
.toLowerCase() | |
.replace(/\s+/g, '-') // Replace spaces with - |
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
[ | |
"", | |
"1, улица", | |
"2, улица", | |
"3, улица", | |
"4, улица", | |
"5, улица", | |
"6, улица", | |
"7, улица", | |
"8, улица", |
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
(function ($, window, undefined) { | |
var App = (window.App === undefined) ? (window.App = {}) : window.App; | |
(App.Views === undefined && (App.Views = {})); | |
App.Views.DragSlides = Backbone.View.extend({ | |
el: '.dragslides', | |
initialize: function () { | |
if (!this.$el.length) { |
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
import TweenLite from 'gsap/TweenLite'; | |
import CSSPlugin from 'gsap/CSSPlugin'; | |
/* | |
* The GSAP-Simple transition is not used, but keep it as a template | |
* Author: Chris Panayotoff [email protected] | |
* */ | |
import Vue from 'vue'; |
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
export default { | |
name : 'Dynamo', | |
functional: true, | |
props : { | |
template: String | |
}, | |
render(createElement, context) | |
{ | |
context.parent.$once('hook:mounted', () => { | |
context.parent.$forceUpdate() |
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 MquScroll = function(options) { | |
//-------------------------------------------------------------- | |
// Compatibility | |
//-------------------------------------------------------------- | |
var raf = window.requestAnimationFrame || window.webkitRequestAnimationFrame || function(callback) { | |
window.setTimeout(callback, 1000 / 60) | |
}; | |
var passiveSupported = false; |
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
// File webpack.mix.js | |
const mix = require('laravel-mix'); | |
const PATHS = { | |
src: 'src', | |
dist: '.', | |
proxy: 'http://localhost:8888/project' | |
}; |
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
const a = new AudioContext(); | |
const oo = a.createOscillator(); | |
oo.connect(a.destination); | |
oo.type="square"; | |
oo.start(); | |
window.addEventListener("mouseover", e => oo.frequency.linearRampToValueAtTime(e.target .innerHTML.length * 0.1 + 37, a.currentTime + 0.37)); |
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
export default class Component { | |
constructor(element, options) { | |
this.element = element; | |
this.element['__component__'] = this; | |
this.options = {...options, ...parseOptions(this.element)}; | |
} | |
el(s) {return el(s, this.element)} | |
els(s) {return els(s, this.element)} | |
init() {} | |
destroy() {} |