Skip to content

Instantly share code, notes, and snippets.

View SniperSister's full-sized avatar

David Jardin SniperSister

View GitHub Profile
@SniperSister
SniperSister / readmedia.php
Last active February 2, 2024 19:45
readmedia.php for Joomla 4 and 5
<?php
/**
* @version 1.0.0
* @package Readmedia
* @copyright Copyright (C) 2018 David Jardin - djumla GmbH
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link http://www.djumla.de
*/
/* Initialize Joomla framework */
@font-face{
font-family: DBHead;
src: url(/resource/crblob/4821032/22e9a212465eb531379a126e31f9e9ec/dbhea07-webfont-woff-data.woff) format("woff"),url(/resource/crblob/4821034/1741755acb15761a1c5638dc8b8262e6/dbhea07-webfont-ttf-data.ttf) format("truetype");
font-weight: 700;
font-style: normal
}
@font-face{
font-family: DBHead;
src: url(/resource/crblob/4821036/f01408f4ff9337b8098133947231e3e8/dbhead-regular-webfont-woff-data.woff) format("woff"),url(/resource/crblob/4821038/983e757c3fb889b880ca00bfdd3d6a1c/dbhead-regular-webfont-ttf-data.ttf) format("truetype");
openapi: 3.0.1
info:
title: ASMP
description: Application Server Management Protocol server
termsOfService: http://asmp.io/terms/
contact:
email: apiteam@asmp.io
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
@SniperSister
SniperSister / script.js
Last active December 25, 2018 11:07
PhocaFilterScript Vanilla JS
document.addEventListener("DOMContentLoaded", () => {
function phFilterQuote(str) {
return str.replace(/[-\[\]{}()*+!<=:?.\/\\^$|#\s,]/g, "\\$&");
};
document.getElementById("phFilterOptions").addEventListener("input", (event) => {
let tV = event.currentTarget.value;
if (tV.length > 0) {
document.querySelectorAll('#configTabs li, #configContent div.tab-pane').forEach((elem) => {elem.classList.add('active')});
<?php
/**
* @version 1.0.0
* @package Readmedia
* @copyright Copyright (C) 2018 David Jardin - djumla GmbH
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link http://www.djumla.de
*/
/* Initialize Joomla framework */