View JQuery-load-and-use-content.html
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name='viewport' content='width=device-width, initial-scale=1'> | |
<meta name="author" content="Mgregchi, Michael Amadi, @Mgregchi"> | |
<meta name="email" content="mgregchi@gmail.com"> | |
<title>How to work with JQuery load() contents</title> | |
<link href='https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css' rel='stylesheet' onerror=""> | |
<script type='text/javascript' src='https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js'></script> |
View load-content-method-2.js
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
$(document).ready(function(){ | |
$("#loader").click(function(){ | |
$("#container").load("/jquery-load-shopping-basket/", | |
function(e){ | |
$(this).find("#empty-basket-search") | |
.keypress(function(e){ | |
$("#single-label").text("You've clicked: ".concat(e.keyCode)) |
View load-content-method-1.js
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
$(document).ready(function(){ | |
$("#loader").click(function(){ | |
$("#container").load("/jquery-load-shopping-basket/", | |
function(e){ | |
//Mix | |
$("empty-basket-search") | |
.prevObject[0] | |
.getElementById("empty-basket-search") |
View bs5-popover-v1-snippet.html
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
<div hidden > | |
<div data-name="popover-content"> | |
<div class="input-group"> | |
<input type="text" class="form-control form-control-sm" placeholder="Search" name="search"> | |
<div class="input-group-btn"> | |
<button class="btn btn-danger" type="submit"> | |
<i class="bi bi-search fa fa-search"></i> | |
</button> | |
</div> |
View bs5-popover.html
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
<!-- begin snippet: js hide: false console: true babel: false --> | |
<!-- language: lang-js --> | |
$(function() { | |
var options = { | |
html: true, | |
title: "Optional: HELLO(Will overide the default-the inline title)", | |
//html element |
View screenshot.py
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
# Python 3 | |
#FOR TAKING USER PREDEFINED SCREENSHOTS | |
# SCREENSHOT | |
from PIL import ImageGrab | |
# GUI | |
import PySimpleGUI as sg | |
# FOLDER AND DIRECTORY | |
import os | |
# GENERIC NAMING |