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
<table | |
align="center" | |
style="background: url('https://source.unsplash.com/random/300x500'); | |
background-size:contain; | |
background-repeat: no-repeat; | |
max-width: 700px; | |
width: 100%;"> | |
<tbody> | |
<tr align="center"> |
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
// FONT SIZES MIXIN START | |
$fontSizes: ( | |
10: 10, | |
12: 12, | |
15: 15, | |
18: 18, | |
20: 20, | |
25: 25 | |
); | |
@mixin fz-modifiers { |
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
<!-- Observer.vue --> | |
<template> | |
<div class="observer"/> | |
</template> | |
<script> | |
export default { | |
data: () => ({ | |
observer: null, | |
}), |
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
// Getting Eastern Time | |
var offset = new Date().getTimezoneOffset(); | |
var CurrentDate = new Date(); | |
var easternTimeOffset = -240; | |
CurrentDate.setMinutes ( CurrentDate.getMinutes() + offset + easternTimeOffset); |
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
const btn = document.querySelector('.btn'); | |
function debounce (fn, delay) { | |
let timeout; | |
return function(){ | |
if (timeout){ | |
clearTimeout(timeout); | |
} | |
timeout = setTimeout(()=>{ | |
fn() |
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
computed:{ | |
search: { | |
get() { | |
return this.$store.state['search'].search; | |
}, | |
set(value) { | |
this.$store.commit("search/SETSEARCH", value); | |
} | |
} | |
} |
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 list = ['1','2','3','4','5'] | |
function chunkArr (arr, count){ | |
var res = [], | |
i = 0; | |
while(i < arr.length){ | |
res.push(arr.slice(i, i+= count)) | |
} | |
return res; |
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
<?php if ($thumb || $images) { ?> | |
<!-- slider new begin /////////////////////////////////////////////// --> | |
<div class="slider-new"> | |
<div class="main-image-slick"> | |
<div><a href="<?php echo $thumb; ?>" style="display: block;" class="popup-image-link" title="<?php echo $heading_title; ?>"> | |
<img itemprop="image" src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>"> | |
</a></div> | |
<?php foreach ($images as $image) { ?> |
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
<video id="video" autoplay controls></video> | |
<script> | |
video = document.getElementById("video"); | |
const option = { | |
video: true, | |
audio: false | |
}; | |
// Get image from camera |
NewerOlder