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
//4. SET EXTERNAL LINKS | |
function setRelAttribute() { | |
var elems = document.body.querySelectorAll('.mainbody a:not([class^="glightbox"])'); | |
var l = window.location.hostname; | |
var regex = new RegExp('^https?:\/\/' + l.replace(/\./g, '\\.') + '(\/.*)*$|^\/.*$'); | |
for (var i = 0; i < elems.length; i++) { | |
var elem = elems[i]; | |
var isInternal = regex.test(elem.href); |
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
<h3 class="class">Some supported heading</h3> | |
<h6>non supported heading</h6> | |
<style type="text/css"> | |
font { | |
font-family: arial; | |
font-size: 140%; | |
} | |
</style> | |
<h1><p>PASTE CHECK</p></h1> | |
<h1><a href="#">PASTE CHECK</a></p></h1> |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Untitled Document</title> | |
<style> | |
:is(.green) { | |
color: green; | |
background:lime; |
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
/* + LOCOMOTIVE ANCHORS | |
https://github.com/locomotivemtl/locomotive-scroll/issues/175#issuecomment-1082541029 | |
======================================================================*/ | |
const anchorLinks = document.querySelectorAll('.mainbody a[href^=\\#]:not(.no-loco):not([href$=\\#])'); | |
anchorLinks.forEach((anchorLink) => { | |
let hashval = anchorLink.getAttribute('href'); | |
let target = document.querySelector(hashval); | |
anchorLink.addEventListener('click', (e) => { |
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
/* | |
* Accessible AccordionTabs, by Matthias Ott (@m_ott) | |
* | |
* Based on the work of @stowball (https://codepen.io/stowball/pen/xVWwWe) | |
* | |
*/ | |
(function () { | |
'use strict'; |
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 | |
// No direct access | |
defined( '_JEXEC' )or die( 'Restricted access' ); | |
// GET URL | |
//function url(){ | |
// return sprintf( | |
// "%s://%s", |
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 | |
FlexicontentFields::getFieldDisplay($item, "gallery"); | |
if(FlexicontentFields::getFieldDisplay($item, "gallery") != "") { | |
?> | |
<div class="gallery wow iamrobert" data-wow-delay="0.25s" data-wow-offset="-100"> |
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 | |
defined( '_JEXEC' )or die( 'Restricted access' ); | |
use Joomla\ String\ StringHelper; | |
/* + ACCORDION ITEM > XML FIELDS | |
======================================================================*/ | |
$pillar = FlexicontentFields::getFieldDisplay( $item, 'investor' ); |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Inline Anime SVG</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<style> | |
/* + SVG ANIMATION (anime.js) | |
======================================================================*/ |