fix class
This commit is contained in:
@@ -1,162 +0,0 @@
|
|||||||
/******/ (function(modules) { // webpackBootstrap
|
|
||||||
/******/ // The module cache
|
|
||||||
/******/ var installedModules = {};
|
|
||||||
/******/
|
|
||||||
/******/ // The require function
|
|
||||||
/******/ function __webpack_require__(moduleId) {
|
|
||||||
/******/
|
|
||||||
/******/ // Check if module is in cache
|
|
||||||
/******/ if(installedModules[moduleId]) {
|
|
||||||
/******/ return installedModules[moduleId].exports;
|
|
||||||
/******/ }
|
|
||||||
/******/ // Create a new module (and put it into the cache)
|
|
||||||
/******/ var module = installedModules[moduleId] = {
|
|
||||||
/******/ i: moduleId,
|
|
||||||
/******/ l: false,
|
|
||||||
/******/ exports: {}
|
|
||||||
/******/ };
|
|
||||||
/******/
|
|
||||||
/******/ // Execute the module function
|
|
||||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
||||||
/******/
|
|
||||||
/******/ // Flag the module as loaded
|
|
||||||
/******/ module.l = true;
|
|
||||||
/******/
|
|
||||||
/******/ // Return the exports of the module
|
|
||||||
/******/ return module.exports;
|
|
||||||
/******/ }
|
|
||||||
/******/
|
|
||||||
/******/
|
|
||||||
/******/ // expose the modules object (__webpack_modules__)
|
|
||||||
/******/ __webpack_require__.m = modules;
|
|
||||||
/******/
|
|
||||||
/******/ // expose the module cache
|
|
||||||
/******/ __webpack_require__.c = installedModules;
|
|
||||||
/******/
|
|
||||||
/******/ // define getter function for harmony exports
|
|
||||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
||||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
||||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
||||||
/******/ }
|
|
||||||
/******/ };
|
|
||||||
/******/
|
|
||||||
/******/ // define __esModule on exports
|
|
||||||
/******/ __webpack_require__.r = function(exports) {
|
|
||||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
||||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
||||||
/******/ }
|
|
||||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
||||||
/******/ };
|
|
||||||
/******/
|
|
||||||
/******/ // create a fake namespace object
|
|
||||||
/******/ // mode & 1: value is a module id, require it
|
|
||||||
/******/ // mode & 2: merge all properties of value into the ns
|
|
||||||
/******/ // mode & 4: return value when already ns object
|
|
||||||
/******/ // mode & 8|1: behave like require
|
|
||||||
/******/ __webpack_require__.t = function(value, mode) {
|
|
||||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
||||||
/******/ if(mode & 8) return value;
|
|
||||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
||||||
/******/ var ns = Object.create(null);
|
|
||||||
/******/ __webpack_require__.r(ns);
|
|
||||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
||||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
||||||
/******/ return ns;
|
|
||||||
/******/ };
|
|
||||||
/******/
|
|
||||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
||||||
/******/ __webpack_require__.n = function(module) {
|
|
||||||
/******/ var getter = module && module.__esModule ?
|
|
||||||
/******/ function getDefault() { return module['default']; } :
|
|
||||||
/******/ function getModuleExports() { return module; };
|
|
||||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
||||||
/******/ return getter;
|
|
||||||
/******/ };
|
|
||||||
/******/
|
|
||||||
/******/ // Object.prototype.hasOwnProperty.call
|
|
||||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
||||||
/******/
|
|
||||||
/******/ // __webpack_public_path__
|
|
||||||
/******/ __webpack_require__.p = "";
|
|
||||||
/******/
|
|
||||||
/******/
|
|
||||||
/******/ // Load entry module and return exports
|
|
||||||
/******/ return __webpack_require__(__webpack_require__.s = 0);
|
|
||||||
/******/ })
|
|
||||||
/************************************************************************/
|
|
||||||
/******/ ({
|
|
||||||
|
|
||||||
/***/ "./src/assets/js/building-blocks/responsive-hidden-nav.js":
|
|
||||||
/*!****************************************************************!*\
|
|
||||||
!*** ./src/assets/js/building-blocks/responsive-hidden-nav.js ***!
|
|
||||||
\****************************************************************/
|
|
||||||
/*! no static exports found */
|
|
||||||
/***/ (function(module, exports) {
|
|
||||||
|
|
||||||
var $topBar = $('[data-responsive-hidden-nav]');
|
|
||||||
var $button = $('[data-responsive-hidden-nav] .responsive-hidden-button');
|
|
||||||
var $visibleLinks = $('[data-responsive-hidden-nav] .visible-links');
|
|
||||||
var $hiddenLinks = $('[data-responsive-hidden-nav] .hidden-links');
|
|
||||||
var responsiveBreaks = []; // Empty List (Array) on initialization
|
|
||||||
|
|
||||||
function updateTopBar() {
|
|
||||||
var availableSpace = $button.hasClass('hidden') ? $topBar.width() : $topBar.width() - $button.width() - 30; // Calculation of available space on the logic of whether button has the class `hidden` or not
|
|
||||||
|
|
||||||
if ($visibleLinks.width() > availableSpace) {
|
|
||||||
// Logic when visible list is overflowing the nav
|
|
||||||
responsiveBreaks.push($visibleLinks.width()); // Record the width of the list
|
|
||||||
|
|
||||||
$visibleLinks.children().last().prependTo($hiddenLinks); // Move item to the hidden list
|
|
||||||
// Show the resonsive hidden button
|
|
||||||
|
|
||||||
if ($button.hasClass('hidden')) {
|
|
||||||
$button.removeClass('hidden');
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
// Logic when visible list is not overflowing the nav
|
|
||||||
if (availableSpace > responsiveBreaks[responsiveBreaks.length - 1]) {
|
|
||||||
// Logic when there is space for another item in the nav
|
|
||||||
$hiddenLinks.children().first().appendTo($visibleLinks);
|
|
||||||
responsiveBreaks.pop(); // Move the item to the visible list
|
|
||||||
} // Hide the resonsive hidden button if list is empty
|
|
||||||
|
|
||||||
|
|
||||||
if (responsiveBreaks.length < 1) {
|
|
||||||
$button.addClass('hidden');
|
|
||||||
$hiddenLinks.addClass('hidden');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$button.attr("count", responsiveBreaks.length); // Keeping counter updated
|
|
||||||
|
|
||||||
if ($visibleLinks.width() > availableSpace) {
|
|
||||||
// Occur again if the visible list is still overflowing the nav
|
|
||||||
updateTopBar();
|
|
||||||
}
|
|
||||||
} // Window listeners
|
|
||||||
|
|
||||||
|
|
||||||
$(window).resize(function () {
|
|
||||||
updateTopBar();
|
|
||||||
});
|
|
||||||
$button.on('click', function () {
|
|
||||||
$hiddenLinks.toggleClass('hidden');
|
|
||||||
});
|
|
||||||
updateTopBar();
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ 0:
|
|
||||||
/*!**********************************************************************!*\
|
|
||||||
!*** multi ./src/assets/js/building-blocks/responsive-hidden-nav.js ***!
|
|
||||||
\**********************************************************************/
|
|
||||||
/*! no static exports found */
|
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
|
||||||
|
|
||||||
module.exports = __webpack_require__(/*! /srv/test_1/myproject/src/assets/js/building-blocks/responsive-hidden-nav.js */"./src/assets/js/building-blocks/responsive-hidden-nav.js");
|
|
||||||
|
|
||||||
|
|
||||||
/***/ })
|
|
||||||
|
|
||||||
/******/ });
|
|
||||||
//# sourceMappingURL=responsive-hidden-nav.js.map
|
|
||||||
File diff suppressed because one or more lines are too long
200639
assets/styles.css
200639
assets/styles.css
File diff suppressed because it is too large
Load Diff
200639
fet2020/static/styles.css
200639
fet2020/static/styles.css
File diff suppressed because it is too large
Load Diff
@@ -316,11 +316,11 @@
|
|||||||
<div class="flex justify-evenly flex-wrap gap-4">
|
<div class="flex justify-evenly flex-wrap gap-4">
|
||||||
{% for post in related_posts %}
|
{% for post in related_posts %}
|
||||||
{% if forloop.counter0 == 2 %}
|
{% if forloop.counter0 == 2 %}
|
||||||
<a href="{{ post.get_absolute_url }}" class="sm:flex-1 hidden lg:block block rounded-md bg-white dark:bg-gray-500 shadow-md bg-no-repeat bg-center aspect-video transition-all ease-in-out duration-500 bg-scale-100 hover:bg-scale-120" style="background-image: url('{{ post.imageurl }}');">
|
<a href="{{ post.get_absolute_url }}" class="sm:flex-1 hidden lg:block rounded-md bg-white dark:bg-gray-500 shadow-md bg-no-repeat bg-center aspect-video transition-all ease-in-out duration-500 bg-scale-100 hover:bg-scale-120" style="background-image: url('{{ post.imageurl }}');">
|
||||||
{% include 'posts/partials/_posts_related.html' %}
|
{% include 'posts/partials/_posts_related.html' %}
|
||||||
</a>
|
</a>
|
||||||
{% elif forloop.last %}
|
{% elif forloop.last %}
|
||||||
<a href="{{ post.get_absolute_url }}" class="sm:flex-1 hidden 2xl:block block rounded-md bg-white dark:bg-gray-500 shadow-md bg-no-repeat bg-center aspect-video transition-all ease-in-out duration-500 bg-scale-100 hover:bg-scale-120" style="background-image: url('{{ post.imageurl }}');">
|
<a href="{{ post.get_absolute_url }}" class="sm:flex-1 hidden 2xl:block rounded-md bg-white dark:bg-gray-500 shadow-md bg-no-repeat bg-center aspect-video transition-all ease-in-out duration-500 bg-scale-100 hover:bg-scale-120" style="background-image: url('{{ post.imageurl }}');">
|
||||||
{% include 'posts/partials/_posts_related.html' %}
|
{% include 'posts/partials/_posts_related.html' %}
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
Reference in New Issue
Block a user