This Gist was automatically created by Carbide, a free online programming environment.
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'), | |
jade = require('gulp-jade'), | |
//autoprefixer = require('gulp-autoprefixer'), | |
browserSync = require('browser-sync'), | |
sourcemaps = require('gulp-sourcemaps'), | |
webpack = require('gulp-webpack'); | |
// Compile the Sass |
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'), | |
gutil = require('gulp-util'), | |
browserSync = require('browser-sync'), | |
elixir = require('laravel-elixir'); | |
var b = elixir.config.js.browserify; | |
b.plugins.push({ | |
name: "browserify-hmr", |
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
<template lang="jade"> | |
component(:is="currentStep", transition="switch-step", transition-mode="out-in") | |
button.stepButton(@click="setCurrentStep('step1')") Step 1 | |
button.stepButton(@click="setCurrentStep('step2')") Step 2 | |
</template> | |
<style lang="stylus"> | |
h1 | |
color: #33BA82 | |
background-color: #33495F |
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
<template lang="jade"> | |
component( | |
:is="stepHandler.currentStep" | |
transition="switch-step" | |
transition-mode="out-in" | |
:stepHandler="stepHandler" | |
) | |
</template> | |
<style lang="stylus"> |
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
<template lang="jade"> | |
#image-browser | |
h1 image search | |
input(v-model="searchInput" @keyup.enter="fetchImages") | |
#gallery | |
img( | |
v-for='image in images' | |
:src='image.thumb' | |
@click='openModal(image.photo)' | |
) |
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
<template lang="jade"> | |
#decid | |
h1 Add your options | |
input( | |
v-model="inputQuery" | |
@keyup.enter="addItem()" | |
) | |
ul#item-list(v-for="item in items", track-by="$index", transition='added-item') | |
li | |
p {{ item.item }} |
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
<template lang="jade"> | |
#decid | |
h1 Add your options | |
input(v-model="inputQuery", @keyup.enter="addItem(inputQuery)") | |
ul#item-list | |
li(v-for="item in items", transition="slide") | |
p {{ item.item }} | |
input(v-model="updateQuery", @keyup.enter="replaceItem(item)", transition="slide", v-show="edit") | |
.buttons | |
span.update(@click="pickItemToUpdate(item)") EDIT |
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
<template> | |
<!-- :class="{'nav-bar': !topper }" --> | |
<header id="header"> | |
<h2 id='logo-text'>GENERA</h2> | |
<div id="wrapper-wrapper"> | |
<div id="logo-cont-wrapper"> | |
<div id="logo-cont" @click="clicker"> | |
<symbol-positioner v-for="id in ids" :pos="pos[$index]"> | |
<div :id="id"></div> | |
</symbol-positioner> |
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
let frame; | |
const headerElement = document.getElementById('header'); | |
let headerToggled = false; | |
function update(frameId,skip){ | |
frame = false; | |
if ( headerToggled && window.pageYOffset > 100 ) { |
OlderNewer