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
const path = require('path'); | |
const data = require('./frontend/manifest'); | |
const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
const BrowserSyncPlugin = require('browser-sync-webpack-plugin'); | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const TerserPlugin = require('terser-webpack-plugin'); | |
const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries'); | |
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); |
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 { | |
text-decoration: none; | |
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, #326891 50%); | |
background-repeat: repeat-x; | |
background-size: 2px 2px; | |
background-position: 0 21px; | |
text-shadow: 1px 1px #ffffff, -1px 1px #ffffff, 1px -1px #ffffff, -1px -1px #ffffff; | |
} |
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
A17.Behaviors.sharing_counter = function() { | |
var url = document.querySelector("link[rel='canonical']").href; | |
if(url) { | |
var script = document.createElement('script'); | |
script.src = '//api-public.addthis.com/url/shares.json?url=' + url + '&callback=A17%2EHelpers%2Eupdate_counters'; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
} | |
}; |
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
// ============================================================================ | |
// This Stylesheet was generated by the 'spriteful' gem, with the following options: | |
<%- if Spriteful.options -%> | |
// 'spriteful <%= Spriteful.options.join(' ') %>'. | |
<%- end -%> | |
<%- if mixin? -%> | |
// Below there are several [Mixin Directives] | |
// (http://sass-lang.com/documentation/file.SASS_REFERENCE.html#mixins) | |
<%- else -%> | |
// Below there are several [Placeholder Selectors] |
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($,window) { | |
// returns an array of objects of the form {url: 'image_url', ratio: float } | |
// array is sorted in asending order by the pixel ratio | |
$.parseSrcset = function(text) { | |
var result = [], | |
items = $.trim(text).split(','); | |
for(var i = 0; i< items.length; i++) { | |
var img = $.trim(items[i]).split(/\s+/); | |
if (img.length < 2) | |
continue; |