3/29/2023

Disable browser right click and view source Javascript

$(document).ready(function() {
    //Disable cut copy paste 
    $('body').bind('cut copy paste', function(e) {
        e.preventDefault();
    });

    //Disable mouse right click 
    $("body").on("contextmenu", function(e) {
        return false;
    });
    //disable ctrl+u
    document.onkeydown = function(e) {
        if (e.ctrlKey &&
            (e.keyCode === 85)) {
            return false;
        }
    };

});

11/12/2019

Oracle Apex 19.2 Popup LOV row highlight and hand symbol when hover

Oracle Apex 19.2 Popup LOV row highlight and hand symbol when hover

Use the below code to show the row highlight and selected row highlight
.a-PopupLOV-results table tr:hover,
.a-PopupLOV-results .a-GV-table tr.is-selected .a-GV-cell{
background:#3f51b5;
color:#fff;
cursor: pointer;
}

3/28/2019

Make input value uppercase in CSS without affecting the placeholder

Make input value uppercase in CSS without affecting the placeholder





input { 
    text-transform: uppercase;
}
::-webkit-input-placeholder { /* WebKit browsers */
    text-transform: none;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    text-transform: none;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
    text-transform: none;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
    text-transform: none;
}
::placeholder { /* Recent browsers */
    text-transform: none;
}

Disable browser right click and view source Javascript

$(document).ready(function() {     //Disable cut copy paste      $('body').bind('cut copy paste', function(e) {         e.pr...