problem: jfbmusic.comptonpesltrainers.com forwards to an error page
solution:
1) turn OFF vpn
2) cache flush
textpattern blog for Marks Notes
Nov 14, 10:51 AM
problem: jfbmusic.comptonpesltrainers.com forwards to an error page
solution:
1) turn OFF vpn
2) cache flush
Aug 9, 05:31 PM
console.table(variable-name)
console.trace()
console.error() and console.warn()
console.count() and console.countReset()
console.time(), console.timeEnd(), and console.timeLog()
console.clear()
May 11, 03:37 AM
// from https://releases.jquery.com/ ?? do we really need the https: part ???
be SURE to start out with the “about:blank” page — 2022-11-21
[ ‘https://code.jquery.com/jquery-3.6.0.js’
].forEach( (src) => {
let script = document.createElement(‘script’); script.src = src; script.async = false;
document.head.appendChild(script);
});
May 4, 08:22 AM
to remove rule:
stylesheet.deleteRule(index),
(loop to find the right value)
==========================================================
// https://webplatform.github.io/docs/tutorials/Dynamic_style_-_manipulating_CSS_with_JavaScript/
// https://stackoverflow.com/questions/70251599/how-to-use-cssstylesheet-insertrule-to-change-a-root-property/71875353
to manipulate the “—” rules such as “—marksVariableName, it has to be done in the” selector and use insertRule:”
this should turn the background color from red to whatever value is in the hash.Mar 28, 09:33 AM
2022-04-01:
function tryMe({one, two, three}) { console.log(one, two,three) ; }
const tmp = { one: 1, two: 2, three: 3 } ;
tryMe(tmp) ;
=========================================
https://www.sitepoint.com/community/t/promises-feedback/384246/3
consider passing an JSON object for parms in the future:
function tester({param}) {
console.log(JSON.stringify(param));
}
tester({param: { ‘parmOne’: 123, ‘paramTwo’: “two”}}) ;
===========
REPLACE:
function desiredCar(eachCar) {
const make = eachCar.make;
const model = eachCar.model;
const hp = eachCar.hp;
// then do stuff with make, model, and hp
}
WITH:
function desiredCar({make, model, hp}) {
}
=======