Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
Signed-off-by: Ismail irfan <98257637+Ismailirfan@users.noreply.github.com>
  • Loading branch information
Ismailirfan authored May 23, 2024
1 parent ca38171 commit ea1ea12
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,27 @@ <h4 class="modal-title">Modal Heading</h4>
</div>

<script>
$("#Shortcutkeys").load("shortcutkeys.html", function() {
// Callback function after loading file1.txt
// $("#div1").load("Services.html", function() {
// // Callback function after loading file2.txt (optional)
console.log("Both files loaded!");
});
$.ajax({
url: 'shortcutkeys.html',
dataType: 'html',
success: function(data) {
// Find the specific element in the loaded HTML content
var specificElement = $(data).find('#setup');
console.log("Your file loaded");
// Insert the specific element into another element on your page
$('#Shortcutkeys').html(specificElement);
},
error: function(jqXHR, textStatus, errorThrown) {
console.error('Error loading the file:', errorThrown);
}
});

// $("#Shortcutkeys").load("shortcutkeys.html", function() {
// // Callback function after loading file1.txt
// // $("#div1").load("Services.html", function() {
// // // Callback function after loading file2.txt (optional)
// console.log("Both files loaded!");
// });
var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="dropdown"]'))
var popoverList = popoverTriggerList.map(function (popoverTriggerEl) {
return new bootstrap.Popover(popoverTriggerEl)
Expand Down

0 comments on commit ea1ea12

Please sign in to comment.