File tree 1 file changed +58
-0
lines changed
WebApplication2/Customer/Pages
1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 406
406
}
407
407
}
408
408
409
+ .hint-popup {
410
+ position : fixed ;
411
+ bottom : 20px ;
412
+ right : 20px ;
413
+ width : 300px ;
414
+ background-color : #fff ;
415
+ border : 1px solid #ccc ;
416
+ border-radius : 10px ;
417
+ box-shadow : 0 4px 10px rgba (0 , 0 , 0 , 0.2 );
418
+ padding : 20px ;
419
+ z-index : 1000 ;
420
+ display : none ; /* Initially hidden */
421
+ }
422
+
423
+ .hint-popup-content {
424
+ position : relative ;
425
+ }
426
+
427
+ .close-btn {
428
+ position : absolute ;
429
+ top : 1px ;
430
+ right : 10px ;
431
+ font-size : 20px ;
432
+ cursor : pointer ;
433
+ color : #333 ;
434
+ }
435
+
436
+ .close-btn :hover {
437
+ color : #ff0000 ;
438
+ }
439
+
409
440
</style >
410
441
</head >
411
442
<body class =" light-mode" >
689
720
window .location .href = ' login.aspx' ;
690
721
}
691
722
723
+ // Function to show the pop-up
724
+ function showPopup () {
725
+ document .getElementById (' hintPopup' ).style .display = ' block' ;
726
+ }
727
+
728
+ // Function to close the pop-up
729
+ function closePopup () {
730
+ document .getElementById (' hintPopup' ).style .display = ' none' ;
731
+ sessionStorage .setItem (' closedCustomer' , ' true' );
732
+ }
733
+
734
+ // Show the pop-up when the page loads
735
+ window .onload = function () {
736
+ // Check if the user is visiting for the first time in this session
737
+ if (! sessionStorage .getItem (' closedCustomer' )) {
738
+ showPopup ();
739
+ }
740
+ }
741
+
692
742
</script >
743
+
744
+ <div id =" hintPopup" class =" hint-popup" >
745
+ <div class =" hint-popup-content" >
746
+ <span class =" close-btn" onclick =" closePopup()" >× ; </span >
747
+ <p ><strong >Hint:</strong > Use National ID: <em >1234567</em > Additionally, refer to the Service Plans section to find Plan IDs as needed to access relevant features.</p >
748
+ </div >
749
+ </div >
750
+
693
751
</body >
694
752
</html >
You can’t perform that action at this time.
0 commit comments