| Original Letter | Look-Alike(s) |
|---|---|
| a | а ạ ą ä à á ą |
| c | с ƈ ċ |
| d | ԁ ɗ |
| e | е ẹ ė é è |
| g | ġ |
| h | һ |
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 | |
| PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <title>HTML Template</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <style> | |
| body { | |
| width: 100% !important; |
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
| const deepCopyFunction = (inObject) => { | |
| let outObject, value, key | |
| if (typeof inObject !== "object" || inObject === null) { | |
| return inObject // Return the value if inObject is not an object | |
| } | |
| // Create an array or object to hold the values | |
| outObject = Array.isArray(inObject) ? [] : {} |
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
| export const scrollToElement = (id, position) => { | |
| const element = document.getElementById(id); | |
| if (element) { | |
| element.scrollIntoView({ | |
| behavior: 'smooth', | |
| block: position, | |
| }); | |
| } | |
| }; |
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
| const STATUS_CODES = { | |
| 100: 'Continue', | |
| 101: 'Switching Protocols', | |
| 102: 'Processing', // RFC 2518, obsoleted by RFC 4918 | |
| 103: 'Early Hints', | |
| 200: 'OK', | |
| 201: 'Created', | |
| 202: 'Accepted', | |
| 203: 'Non-Authoritative Information', | |
| 204: 'No Content', |
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
| /** | |
| * Get a URL parameter | |
| * @param {String} name - Name of parameter | |
| * @returns {(String|null)} The value of parameter, if found | |
| */ | |
| function getUrlParam(name) { | |
| return new URL(location.href).searchParams.get(name); | |
| } |
javascript:(function(){
allowCopyAndPaste = function(e){
e.stopImmediatePropagation();
return true;
};
document.addEventListener('copy', allowCopyAndPaste, true);
document.addEventListener('paste', allowCopyAndPaste, true);
document.addEventListener('onpaste', allowCopyAndPaste, true);
})(); If you want resources offline to learn about programming and web technologies MDN is for you! and I recommend to use MDN over w3school because w3school is outdated.
Download it offline (2.1gb) at https://mdn-downloads.s3-us-west-2.amazonaws.com/developer.mozilla.org.tar.gz
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
| /* | |
| * This script will look for all images on a page and prevent right clicking on an image. | |
| */ | |
| const images = document.getElementsByTagName('img'); | |
| for(var i = 0; i < images.length; i++) { | |
| images[i].addEventListener('contextmenu', event => event.preventDefault()); | |
| } | |
| // Note: I threw this script together as requested by a subscriber. I personally don't recommend doing |