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
(function () { | |
// Default configuration | |
const defaultConfig = { | |
selector: '.magnetic', | |
strength: 24, | |
textStrength: 18 | |
}; | |
// Public API | |
window.Magnetic = { |
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 | |
/** | |
* @package Joomla.Site | |
* @subpackage com_content | |
* | |
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
defined('_JEXEC') or die; |
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
# Define the project name variable | |
$projectName = "jy" | |
# Define source and destination paths | |
$templateSrc = "D:\2025-laragon\www\$projectName\templates\iamrobert4" | |
$templateDst = "D:\bitbucket\$projectName" | |
$mediaSrc = "D:\2025-laragon\www\$projectName\media\templates\site\iamrobert4" | |
$mediaDst = "D:\bitbucket\$projectName\media\templates\site\iamrobert4" | |
# Function to compare and sync files |
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 | |
/* + JOOOMLA DEBUGGER- will write to /administrator/logs/admin-500.log. | |
+ Overwrite your /administrator/index.php root file | |
+ Revert back after debugging! | |
======================================================================*/ | |
// At the very start of /administrator/index.php | |
if (!function_exists('debugLog')) { | |
function debugLog($message, $data = null) { | |
$logFile = __DIR__ . '/logs/admin-500.log'; | |
$timestamp = date('Y-m-d H:i: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
app.imgBaselineHeight = { | |
init: function () { | |
function calculateCSSVar(variableName) { | |
const tempEl = document.createElement('div'); | |
tempEl.style.marginTop = `var(${variableName})`; | |
tempEl.style.position = 'absolute'; | |
tempEl.style.visibility = 'hidden'; | |
document.body.appendChild(tempEl); | |
const computedStyle = getComputedStyle(tempEl).marginTop; |
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
var urlParams = new URLSearchParams(window.location.search); | |
if (urlParams.has('grid')) { | |
document.body.classList.add("bgrid"); | |
} | |
/* + BGRID | |
======================================================================*/ | |
// Keyboard event listener for Ctrl + ; |
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
# CSS/JS auto-versioning | |
RewriteEngine On | |
RewriteRule ^(.*)\.[\d]{10}\.(css|js)$ $1.$2 [L] |
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
/* | |
* ======================================================================= | |
+ ICONS | |
----------------------------------------------------------------------- | |
* ======================================================================= | |
*/ | |
/*! purgecss start ignore */ | |
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 | |
/* iamrobert.com | TAIWAN ------------------------------------------------- | |
_ __ __ | |
(_)__ ___ _ _______ / / ___ ____/ /_ | |
/ / _ `/ ' \/ __/ _ \/ _ \/ -_) __/ __/ | |
/_/\_,_/_/_/_/_/ \___/_.__/\__/_/ \__/ | |
===================================================== DIGITAL DESIGN STUDIO | |
# author Robert Stark | |
# copyright Copyright 2023 iamrobert.com All rights reserved. |
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
/* + VIDEO PLAYER | |
======================================================================*/ | |
var current_player = null; | |
app.videoPlayer = { | |
init: function () { | |
if (!document.querySelector(".js-player")) { | |
// console.log('no-plyr'); | |
return; | |
} else { |
NewerOlder