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
enum LocalStorageExpired { | |
INFINITE = 'INFINITE', | |
LOGOUT = 'LOGOUT', | |
} | |
class LocalStorageService { | |
prefix = 'GG_'; | |
get<T extends unknown>(key: string, defaultValue: T): T { | |
try { |
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
import Collection from '../Plex/Collection'; | |
import jetpack from 'fs-jetpack'; | |
import InstagramAccount from './InstagramAccount'; | |
import {chunk, defaults, differenceBy, isString, sortBy, uniqBy} from "lodash"; | |
import configs from "../../config/app"; | |
import moment from "moment"; | |
import type {dbAccauntLog, dbAccountMeta} from "../Plex/type/db.flow"; | |
import AccountLog from "../Plex/AccountLog"; | |
import type {Collection as CollectionMongo} from "../Plex/type/mongo.flow"; | |
import {getArrayOfLinesFromFile} from "../Plex/Helpers"; |
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
<script> | |
// ищим ид метрики и создем уневерсальый обробочик для нескольких ледингов | |
var noscript = document.getElementsByTagName('noscript'); | |
var idMetrick = 0; | |
var idMail = 0; | |
if (noscript.length) { | |
for (var i = 0; i < noscript.length; i++) { |
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
<html> | |
<head> | |
<style> | |
* {margin:0;padding:0;cursor:pointer;} iframe {border: 0 !important;} #sfwgt{border: 0 !important;} | |
#myoverlay { | |
width: 100%; | |
height: 100%; | |
position: absolute; | |
top: 0; | |
left: 0; |
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
window.Player = function () { | |
return { | |
init: function($el) { | |
audiojs.events.ready(function () { | |
audiojs.createAll({ | |
css: false, |
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
$('.videowrapper a').click(function () { | |
var $this = $(this); | |
var url = $this.attr('href'); | |
$this.parent().append($('<iframe>').attr({ | |
src: url + '?autoplay=1&rel=0&showinfo=0&border=0&iv_load_policy=3&modestbranding=1', | |
frameborder: "0", | |
allowfullscreen: null | |
})); | |
$this.remove() | |
return false |
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
// возвращает cookie если есть или undefined | |
function getCookie(name) { | |
var matches = document.cookie.match(new RegExp( | |
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" | |
)) | |
return matches ? decodeURIComponent(matches[1]) : undefined | |
} | |
// уcтанавливает cookie | |
function setCookie(name, value, props) { |
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
<style> | |
.social-share .b-share_theme_counter .b-share__handle { | |
padding: 5px !important; | |
width: auto !important; | |
} | |
.social-share .b-share__handle a { | |
background-color: transparent; | |
display: inline-block; | |
width: 23px; |
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
/* | |
Live.js - One script closer to Designing in the Browser | |
Written for Handcraft.com by Martin Kool (@mrtnkl). | |
Version 4. | |
Recent change: Made stylesheet and mimetype checks case insensitive. | |
http://livejs.com | |
http://livejs.com/license (MIT) | |
@livejs |
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
<div class="videowrapper"> | |
<a href="{{ url }}" target="_blank"> | |
<img src="{{ img-url }}" alt=""/> | |
</a> | |
</div> |
NewerOlder