Monday, March 20, 2017

sample allow pdf full screen

saample allow pdf full screen
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <iframe id="viewer" src="http://mzl.la/pdf-js" mozallowfullscreen allowfullscreen></iframe><br>
  <button onclick="fullScreen()">Full Screen</button>
  <script>
    function fullScreen() {
      var viewer = document.getElementById('viewer');
      var rFS = viewer.mozRequestFullScreen || viewer.webkitRequestFullscreen || viewer.requestFullscreen;
      rFS.call(viewer);
    }
  </script>
</body>
</html>

No comments:

Post a Comment

phprunner view custom filed status

if ($value=="Process") $str.='<img src="1.png">'; if ($value=="Receive") $str.='<i...