juda PDU update / unSELECTable j-view

Issue #57 resolved
Alex M Pro created an issue

css: -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none;

UNuse JS : function clearSelection() { if (window.getSelection) { window.getSelection().removeAllRanges(); } else { // старый IE document.selection.empty(); } }

JS/CSS: <div id="mainbody" onmousedown="return false" onselectstart="return false">

Comments (4)

  1. Alex M Pro reporter
    • f5judge.css
    • j-0.php
    • j.php
    • judas.js

    + ::selection { background: transparent; } ::-moz-selection { bac

  2. Alex M Pro reporter

    add JS: doubleRefresh JUDAs PDU

    // ################################################################################################################
    // #####  trY use JS localStorage !!!
    // ################################################################################################################
      // Check browser support
    if( window.localStorage ) {
      if( !localStorage.getItem( 'need2refreshMJudaz' ) ) {
        console.log('n2r: 1 -> refresh!');
        localStorage[ 'need2refreshMJudaz' ] = true;
        window.location.reload();
      }
      else {
        localStorage.removeItem( 'need2refreshMJudaz' );
        console.log('n2r: 0 -> NO refresh!');
      }
    }
    // ################################################################################################################
    // #####  trY use JS localStorage @@@
    // ################################################################################################################
    
  3. Log in to comment