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
<div class="test-div"></div> |
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
<div class="test-div"></div> |
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
<div class="grid_row"> | |
<div class="col-3"></div> | |
<div class="col-6"></div> | |
<div class="col-3"></div> | |
</div> |
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-sprite-name: 'global_sprite'; | |
$global-sprite-type: "png"; | |
$global-sprite-size: 600px 600px; | |
@mixin bg-sprite($x: 0, $y: 0, $retina: false) { | |
$file-type: $global-sprite-type; | |
background: url('../images/' + $global-sprite-name + '.' + $file-type) $x $y no-repeat; | |
background-size: 600px 600px; | |
@if $retina == true { | |
@media |
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
$media-queries: true; | |
@mixin bp($point) { | |
@if ($media-queries) { | |
$bp-large-screen: 1824px; | |
$bp-bigscreen: 1824px; | |
$bp-ipad-max: 1024px; | |
$bp-ipad-min: 768px; | |
$bp-iphone5-max: 568px; | |
$bp-iphone-max: 480px; |
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(){ | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId : '8547685675671896', // App ID | |
// channelUrl : 'http(s)://yourdomain.com/channel.html', // Channel File | |
status : true, // check login status | |
cookie : true, // enable cookies to allow the server to access the session | |
xfbml : true // parse XFBML | |
}); |
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
var gulp = require('gulp'); | |
var async = require('async'); | |
gulp.task('task1', function() { | |
console.log('1'); | |
}); | |
gulp.task('task2', function(cb) { | |
setTimeout(function () { | |
console.log('2'); |
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
var _userForm = { | |
getElement: { | |
d: $(document), | |
f: $('.js-userForm') | |
}, | |
send: function() { | |
var self = this; |
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
import * as axios from 'axios' | |
import { getCookieInClient } from '../util/assist' | |
export default ({ app, store, redirect }) => { | |
// The server-side needs a full url to works | |
if (process.SERVER_BUILD) { | |
axios.defaults.baseURL = `http://${process.env.HOST || 'localhost'}:${process.env.PORT || 3000}` | |
} |
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
observeDOMChanges() { | |
this.observer = new MutationObserver(mutations => { | |
mutations.forEach(function(mutation) { | |
EventEmmiter.emit(true) | |
}); | |
}); | |
var config = { attributes: true, childList: true, characterData: true }; | |
this.observer.observe(this.elRef.nativeElement, config); | |
} |