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 uiController(domElement){ | |
var data = domElement.data(); | |
domElement.toggleClass('active'); | |
$(data.target).toggleClass('active'); | |
$(data.remove).removeClass('active'); | |
} | |
$(controller).click(function(e){ | |
uiController($(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
function tabs(domElement){ | |
var active = 'active'; | |
var content = $('.tab-content__item'); | |
$(domElement).click(function () { | |
var index = $(this).index(); | |
content.eq(index).addClass(active).siblings().removeClass(active); | |
$(this).addClass(active).siblings().removeClass(active); | |
}); | |
} |
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 http = require('http'); | |
var static = require('node-static'); | |
var file = new static.Server('.'); | |
http.createServer(function (req, res) { | |
file.serve(req, res); | |
}).listen(5000); | |
console.log('Server running on port 5000'); |
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 getScrollBarWidth() { | |
let scrollDiv = document.createElement("div"); | |
scrollDiv.style.overflowY = "scroll"; | |
scrollDiv.style.width = "50px"; | |
scrollDiv.style.height = "50px"; | |
scrollDiv.style.visibility = "hidden"; | |
document.body.appendChild(scrollDiv); | |
let scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth; | |
document.body.removeChild(scrollDiv); | |
return scrollbarWidth |
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
@mixin triangle($direction, $color, $height, $width) { | |
border-style: solid; | |
height: 0; | |
width: 0; | |
@if($direction == 'top') { | |
border-color: transparent transparent $color transparent; | |
border-width: 0 ($width/2) $height ($width/2); | |
} | |
@if ($direction == 'bottom') { | |
border-color: $color transparent transparent transparent; |
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
@mixin aspect-ratio($width, $height) { | |
position: relative; | |
&:before{ | |
display: block; | |
content: " "; | |
width: 100%; | |
padding-top: ($height / $width) * 100%; | |
} | |
} |
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
@mixin css-counter($element, $start: 1) { | |
@if($start == 1) { | |
counter-reset: list; | |
} | |
@else { | |
$start: $start - 1; | |
counter-reset: list #{$start}; | |
} |
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
<template> | |
<div | |
class="bonuses-accordion-bar" | |
@click="handleStaticPageClick" | |
> | |
<div class="accordion-1"> | |
<div | |
ref="accordionItem" | |
class="accordion-1__item accordion-1__item--no-num" | |
> |
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
<template> | |
<div> | |
<btn @click="openCustomModal">btn</btn> | |
</div> | |
</template> | |
<script> | |
import Btn from '@/common-components/btn' | |
import { mapActions } from 'vuex' |
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
/^(?=.*?[A-Za-z])(?=.*[0-9])[a-zA-Z0-9#?!@$%^&*-]{8,}$/.test(self.password.value) |
OlderNewer