Skip to content

Instantly share code, notes, and snippets.

View ldijkman's full-sized avatar

Dirk Luberth Dijkman ldijkman

View GitHub Profile
@ldijkman
ldijkman / tooltip.js
Last active January 28, 2024 09:05
// made with Ai gpt 3.5 and 4 by (c)2024 dirk luberth dijkman bangert 30 andijk the netherlands // maybe shows a bit more as chromium inspect dev. tools // like class index number
// made with Ai gpt 3.5 and 4 by (c)2024 dirk luberth dijkman bangert 30 andijk the netherlands
// maybe shows a bit more as chromium inspect dev. tools
// like class index number
// <script src="https://cdn.jsdelivr.net/gh/ldijkman/Ace_Seventh_Heaven/docs/tooltip.js"></script>
/*
Not understanding can be a roadblock,
but it's also an opportunity for growth.
Start by pinpointing exactly what's causing confusion.
Isolate that element and look for resources—books, videos, or experts—that can clarify it.
@ldijkman
ldijkman / chat gpt copy buttons to code bookmarklet
Last active January 27, 2024 11:01
bookmarklet add copy buttons to top and bottom of chat gpt code fields
javascript:(function() { function copyToClipboard(text) { const textarea = document.createElement('textarea'); textarea.value = text; document.body.appendChild(textarea); textarea.select(); document.execCommand('copy'); document.body.removeChild(textarea); } function addCopyButtons() { const codeBlocks = document.querySelectorAll('pre code'); codeBlocks.forEach(function(codeBlock) { const topButton = createCopyButton(codeBlock); topButton.style.top = '0px'; const bottomButton = createCopyButton(codeBlock); bottomButton.style.bottom = '0px'; const pre = codeBlock.parentNode; if (pre.style.position !== 'relative') { pre.style.position = 'relative'; } pre.appendChild(topButton); pre.appendChild(bottomButton); }); } function createCopyButton(codeBlock) { const button = document.createElement('button'); button.textContent = 'Copy'; button.style.position = 'absolute'; button.style.right = '0px'; button.style.backgroundColor = '#fff'; button.style.border = '1px solid #000'; button.style.borderRadius = '4px'; button.
<!DOCTYPE html> <!-- this should be the first line of the document not all the blahblah before this-->
<html> <!--trigger an Error should be <html> see vertical scrollbar red line-->
<head>
<title>Visual TimeSlot Day Week Scheduler, Touch Friendly</title>
<link rel="icon" type="image/x-icon" href="https://raw.githubusercontent.com/ldijkman/randomnerd_esp32_wifi_manager/main/Electra.jpg">
<!-- on my android icon is also shown on home screen, if saved to home screen -->
<!--
@ldijkman
ldijkman / 3d-cube-rectangle-square-scss.markdown
Created May 23, 2022 15:03
3d cube, rectangle, square, scss
@ldijkman
ldijkman / test.html
Last active March 6, 2022 06:33
test
test
@ldijkman
ldijkman / index.html
Created January 30, 2022 08:51 — forked from Virksaabnavjot/index.html
Programmatically passing URL parameters to IFrame src using JavaScript
<html>
<head>
<title>
Programmatically passing URL parameters to IFrame using JavaScript
</title>
</head>
<body>
<iframe id="myIframe" frameborder="0" marginwidth="0" marginheight="0" scrolling="NO" width="100%" height="100%"></iframe>
</body>
Code and Explanation: https://mrvirk.com/javascript-to-calculate-age-from-date-of-birth.html