This file contains 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
{ | |
"directory": "Scripts/Components" | |
} |
This file contains 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
down = document.createEvent("MouseEvents"); | |
down.initMouseEvent("mousedown", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null); | |
document.getElementById('clbh_phone_div').dispatchEvent(down) | |
up = document.createEvent("MouseEvents"); | |
up.initMouseEvent("mouseup", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null); | |
document.getElementById('clbh_phone_div').dispatchEvent(up) |
This file contains 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
/* global require */ | |
'use strict'; | |
var gulp = require('gulp'), | |
less = require('gulp-less'); | |
gulp.task('less', function() { | |
gulp.src('styles/less/bootstrap.less') | |
.pipe(less({ | |
compress: true |
This file contains 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
HTMLTextAreaElement.prototype.getCaretPosition = function () { //return the caret position of the textarea | |
return this.selectionStart; | |
}; | |
HTMLTextAreaElement.prototype.setCaretPosition = function (position) { //change the caret position of the textarea | |
this.selectionStart = position; | |
this.selectionEnd = position; | |
this.focus(); | |
}; | |
HTMLTextAreaElement.prototype.hasSelection = function () { //if the textarea has selection then return true | |
if (this.selectionStart == this.selectionEnd) { |
This file contains 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() { | |
'use strict'; | |
var delimiter = '--'; | |
DOMTokenList.prototype.modify = function(mod) { | |
if (false === tag.classList.modified(mod)) { | |
this.add([this[0], delimiter, mod].join('')); | |
} | |
}; |
This file contains 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
#target photoshop | |
app.bringToFront(); | |
$.localize = true; | |
var target_size = 999; | |
var tmp_target_size = target_size * 2; | |
var inputFolder = Folder.selectDialog("Выберите папку с фотографиями"); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
inline: { | |
'index.html': ['tpl/*.html'] | |
} | |
}); | |
grunt.registerMultiTask('inline', 'Inline AngularJS templates into single file.', function() { | |
var SCRIPT = '<script type="text/ng-template" id="<%= id %>"><%= content %></script>\n'; |
This file contains 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
grunt.registerMultiTask("cssindex", "Create an 'index' file of css @import rules for sitewide CSS", function() { | |
var file = grunt.file; | |
var target = this.target; | |
var fileHandles = this.data.map(function( glob ) { | |
return file.expand( glob ); | |
}); | |
var imports; | |
fileHandles = fileHandles.concat.apply( [], fileHandles ); |
This file contains 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
./frontend | |
│ | |
├── /coffee | |
│ ├── /models | |
│ | └── MyBaseModel.coffee | |
│ | └── MyModel.coffee | |
│ ├── /routers | |
│ | └── MyRouter.coffee | |
│ ├── /templates | |
| │ ├── /tmpl-dir1 |