vendor: 3,611 bytes, lines 1-88
1/******/ (function(modules) { // webpackBootstrap 2/******/ // The module cache 3/******/ var installedModules = {}; 4/******/ 5/******/ // The require function 6/******/ function __webpack_require__(moduleId) { 7/******/ 8/******/ // Check if module is in cache 9/******/ if(installedModules[moduleId]) { 10/******/ return installedModules[moduleId].exports; 11/******/ } 12/******/ // Create a new module (and put it into the cache) 13/******/ var module = installedModules[moduleId] = { 14/******/ i: moduleId, 15/******/ l: false, 16/******/ exports: {} 17/******/ }; 18/******/ 19/******/ // Execute the module function 20/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21/******/ 22/******/ // Flag the module as loaded 23/******/ module.l = true; 24/******/ 25/******/ // Return the exports of the module 26/******/ return module.exports; 27/******/ } 28/******/ 29/******/ 30/******/ // expose the modules object (__webpack_modules__) 31/******/ __webpack_require__.m = modules; 32/******/ 33/******/ // expose the module cache 34/******/ __webpack_require__.c = installedModules; 35/******/ 36/******/ // define getter function for harmony exports 37/******/ __webpack_require__.d = function(exports, name, getter) { 38/******/ if(!__webpack_require__.o(exports, name)) { 39/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40/******/ } 41/******/ }; 42/******/ 43/******/ // define __esModule on exports 44/******/ __webpack_require__.r = function(exports) { 45/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47/******/ } 48/******/ Object.defineProperty(exports, '__esModule', { value: true }); 49/******/ }; 50/******/ 51/******/ // create a fake namespace object 52/******/ // mode & 1: value is a module id, require it 53/******/ // mode & 2: merge all properties of value into the ns 54/******/ // mode & 4: return value when already ns object 55/******/ // mode & 8|1: behave like require 56/******/ __webpack_require__.t = function(value, mode) { 57/******/ if(mode & 1) value = __webpack_require__(value); 58/******/ if(mode & 8) return value; 59/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60/******/ var ns = Object.create(null); 61/******/ __webpack_require__.r(ns); 62/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64/******/ return ns; 65/******/ }; 66/******/ 67/******/ // getDefaultExport function for compatibility with non-harmony modules 68/******/ __webpack_require__.n = function(module) { 69/******/ var getter = module && module.__esModule ? 70/******/ function getDefault() { return module['default']; } : 71/******/ function getModuleExports() { return module; }; 72/******/ __webpack_require__.d(getter, 'a', getter); 73/******/ return getter; 74/******/ }; 75/******/ 76/******/ // Object.prototype.hasOwnProperty.call 77/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78/******/ 79/******/ // __webpack_public_path__ 80/******/ __webpack_require__.p = ""; 81/******/ 82/******/ 83/******/ // Load entry module and return exports 84/******/ return __webpack_require__(__webpack_require__.s = "./app/scripts.js"); 85/******/ }) 86/************************************************************************/ 87/******/ ({ 88
89/***/ "./app/scripts.js": 90/*!************************!*\ 91 !*** ./app/scripts.js ***! 92 \************************/ 93/*! no static exports found */ 94/***/ (function(module, exports, __webpack_require__) { 95 96"use strict"; 97 98 99function getPlaceholders(elem, input) { 100 input = input || 'input'; 101 elem = document.querySelector(elem); 102 var DOMElem = {}; 103 104 if (elem) { 105 DOMElem.label = elem.querySelector('label').textContent; 106 DOMElem.input = elem.querySelector(input); 107 DOMElem.input.setAttribute('placeholder', DOMElem.label); 108 } 109} 110 111function showSearch() { 112 var search = document.querySelector('.search-modal'); 113 document.body.style.overflow = 'hidden'; 114 search.classList.add('search-modal--open'); 115} 116 117function closeSearch() { 118 var search = document.querySelector('.search-modal'); 119 document.body.style.overflow = 'visible'; 120 search.classList.remove('search-modal--open'); 121} 122 123window.onload = function () { 124 // Sidebar height 125 (function () { 126 var mainHeight = document.querySelector('main').clientHeight; 127 document.querySelector('.sidebar .widget').style.height = document.body.classList.contains('home') ? mainHeight - 30 + 'px' : mainHeight + 'px'; 128 })(); // Single post 129 130 131 if (document.body.classList.contains('single')) { 132 getPlaceholders('.comment-form-comment', 'textarea'); 133 getPlaceholders('.comment-form-author'); 134 getPlaceholders('.comment-form-email'); 135 getPlaceholders('.comment-form-url'); 136 var commentForm = document.querySelector('.comment-form-block'); 137 document.querySelectorAll('.comment-reply-link').forEach(function (link) { 138 link.addEventListener('click', function () { 139 if (!commentForm.classList.contains('hide')) { 140 commentForm.classList.add('hide'); 141 } 142 }); 143 }); 144 document.querySelectorAll('#cancel-comment-reply-link').forEach(function (link) { 145 link.addEventListener('click', function () { 146 commentForm.classList.remove('hide'); 147 }); 148 }); 149 } 150 151 document.querySelector('.search__trigger').addEventListener('click', showSearch); 152 document.querySelector('.search-modal').addEventListener('click', closeSearch); 153 document.querySelector('.search-form').addEventListener('click', function (e) { 154 e.stopPropagation(); 155 }); 156}; 157 158/***/ })
158 159 160/******/ }); 161 162//console.log('test'); 163jQuery(function($){ 164 jQuery('main .post iframe') 165 .filter(function(index, item){return !jQuery(item).closest('.fb-video').length}) 166 .each(function (index, item) { 167 var $item = jQuery(item); 168 var originalWidth = $item.width(); 169 var originalHeight = $item.height(); 170 var ratio = originalHeight/originalWidth*100; 171 var roundedRatio = Math.round(ratio * 100) / 100; 172 $item.wrap('<div class="video-container" style="position:relative;padding-top:'+roundedRatio+'%"></div>'); 173 $item.css({ 174 position: 'absolute', 175 top: 0, 176 left: 0, 177 width: '100%', 178 height: '100%' 179 }); 180 }); 181}); 182 183 184//# sourceMappingURL=scripts.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.