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
/** | |
* If you are use to pre-version 10 jsdom, post 10 is an absolute nuisance for loading scripts...especially when you just | |
* want to test some code. | |
* This just creates a nice little wrapper to simplify everythign. | |
**/ | |
const __jsdom = require("jsdom"); | |
const { JSDOM } = __jsdom; | |
global.jsdom = function(html = '', scripts = []){ | |
return new Promise((resolve, reject)=>{ |
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
/** | |
* If you do: | |
* describe('Test', ()=>{ | |
* it('what', async (done)=>{ | |
* try{ | |
* await SOME_ASYNC_FUNCTION | |
* done() | |
* }catch(e){ | |
* done(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
upstream tunnel { | |
server 127.0.0.1:3000; | |
} | |
server { | |
listen 80; | |
server_name dev.codeplane.com br.dev.codeplane.com; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; |
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
/* Riot WIP, @license MIT */ | |
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | |
typeof define === 'function' && define.amd ? define(factory) : | |
(global.riot = factory()); | |
}(this, (function () { 'use strict'; | |
var __VIRTUAL_DOM = []; | |
var __TAG_IMPL = {}; | |
var GLOBAL_MIXIN = '__global_mixin'; |
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
/* Riot WIP, @license MIT */ | |
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | |
typeof define === 'function' && define.amd ? define(factory) : | |
(global.riot = factory()); | |
}(this, (function () { 'use strict'; | |
var __VIRTUAL_DOM = []; | |
var __TAG_IMPL = {}; | |
var GLOBAL_MIXIN = '__global_mixin'; |
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
<trix> | |
<input id={'trix-'+_riot_id} value={opts.content} type="hidden" /> | |
<trix-editor name="trix" class="trix-content" input={'trix-'+_riot_id} ></trix-editor> | |
<script> | |
/* | |
* <trix trix-change={changetext} content={content}></trix> | |
* You can bind to any of the trix events | |
*/ | |
this.on('mount', 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
<rate> | |
<div class={"thumbs-wrapper " + (rating > 0 ? 'up' : rating < 0 ? 'down' : '')}> | |
<button class="down icon-thumbs-down"></button> | |
<button class="up icon-thumbs-up"></button> | |
</div> | |
<style scoped> | |
button{ | |
min-width: auto; | |
min-height: auto; |
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
@charset "utf-8";.fixed-header,.page-box{padding-top:0!important}.carousel-box .prev,.header .cart-header .dropdown-menu .product-remove,.header .cart-header .dropdown-toggle .icon,.jslider .jslider-pointer{background-repeat:no-repeat;background-position:50% 50%}.fixed-header{margin-top:0!important}.fixed-header .header,.fixed-header.hidden-top.visible-top .header{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;margin-top:inherit;position:static;top:inherit;-webkit-backface-visibility:inherit;-webkit-transform:inherit}.fixed-header.hidden-top{-webkit-transition:all 0 linear;transition:all 0 linear}.fixed-header.hidden-top #top-box{margin-top:0;position:static}.fixed-header.hidden-top .header{margin-top:0;position:inherit}.fixed-header.fixed .header,.fixed-header.hidden-top.visible-top .header{border-bottom:1px solid #e1e1e1}.gallery-images:hover>.bg-images{filter:alpha(opacity=70)}.work:hover .bg-hover{filter:alpha(opacity=90)}.carousel-box .prev{background-image:url(../../img/png-icons/arrow-lef |
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
@charset "utf-8";*,html{-webkit-tap-highlight-color:transparent}.tp-bullets.preview4 .bullet,hr{-webkit-box-sizing:content-box;-moz-box-sizing:content-box}.caret:before,.glyphicon{-moz-osx-font-smoothing:grayscale}.glyphicon,.mistbtn-circle,.mistbtn-rounded,sub,sup{position:relative}.input-group-addon:last-child,.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.navbar-fixed-bottom .na |
This file has been truncated, but you can view the full file.
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 revslider_showDoubleJqueryError(a){var b="Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include.";b+="<br> This includes make eliminates the revolution slider libraries, and make it not work.",b+="<br><br> To fix it you can:<br> 1. In the Slider Settings -> Troubleshooting set option: <strong><b>Put JS Includes To Body</b></strong> option to true.",b+="<br> 2. Find the double jquery.js include and remove it.",b="<span style='font-size:16px;color:#BC0C06;'>"+b+"</span>",jQuery(a).show().html(b)}function onYouTubePlayerAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger("YTAPIReady"))}function formatter(a,b){return a.toFixed(b.decimals)}function formStylization(){var a=jQuery,b='input[type="radio"]',c='input[type="checkbox"]';a(b).wrap('<div class="new-radio"></div>'),a(".new-radio").append("<span></span>"),a(c).wrap('<div class="new-checkbox"></div>'),a(".new-checkbox").append('<svg xmln |
NewerOlder