This file contains 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
.mytext{ | |
--tintColor: aqua; | |
--tintColor2: coral; | |
--tintColor3: #611fec; | |
color: var(--tintColor, var(--tintColor2, var(--tintColor3, white))); | |
} |
This file contains 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 fileInput = document.querySelectorAll('input[type="file"]'); | |
console.log(fileInput); | |
fileInput.forEach((element, index)=>{ | |
let newNode = document.createElement('span'); | |
newNode.classList.add("file-custom"); | |
element.after(newNode); | |
}) |
This file contains 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
import fetch from "node-fetch"; | |
const token = "acKiCCMLQd9xneDTEcbFz6UZijEccu6cqoULHlX9WjrTLufj2pOzMs6LuzEVI..............."; | |
const client_id = "196c0bbc-4696-49ed-......"; | |
const body = JSON.stringify({ | |
treatmentId: 6257, | |
type: "NEW", | |
}); | |
const response = await fetch( |
This file contains 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
Windows Registry Editor Version 5.00 | |
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder] | |
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder] |
This file contains 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 [feeds, setFeeds] = useState(); | |
const [resolved, isResolved] = useState(false); | |
useEffect(() => { | |
(async () => { | |
const url = `https://hub.dummyapis.com/delay?seconds=5`; | |
const data = await fetch(url).then((res) => res.text()); | |
setFeeds(data); | |
isResolved(true); | |
console.log("Run after completion of async"); |
This file contains 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 cfEmail = document.getElementById("cf-email"); | |
if (cfEmail) { | |
cfEmail.value = customer_email; | |
} |
This file contains 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(){ | |
var dateField = document.getElementById("cf-dob"); | |
jQuery("#cf-dob").on("focusout", function () { | |
var match = dateField.value.split("-"); | |
var c_dobyear = match[0]; | |
var c_dobmonth = match[1]; | |
var c_dobdate = match[2]; | |
var age = 18; | |
var mydate = new Date(); |
This file contains 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 sortedCommentArray = commentArray.sort((a, b) => | |
a.createdAt > b.createdAt ? 1 : b.createdAt > a.createdAt ? -1 : 0 | |
); |
This file contains 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
Object.assign(trackItem, { | |
commentArray: resComment.data.commentArray, | |
}); |
NewerOlder