/[svn]/doc/tmpl/js/crd.js
ViewVC logotype

Diff of /doc/tmpl/js/crd.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3268 by schoenebeck, Thu Jun 1 18:54:52 2017 UTC revision 3269 by schoenebeck, Fri Jun 2 11:59:21 2017 UTC
# Line 4  Line 4 
4    http://www.crudebyte.com    http://www.crudebyte.com
5  */  */
6    
7    var g_isTouch = false;
8    
9  function crdWindowHeight() {  function crdWindowHeight() {
10      return window.innerHeight ||      return window.innerHeight ||
11             document.documentElement.clientHeight ||             document.documentElement.clientHeight ||
# Line 60  function crdOnWindowResize() { Line 62  function crdOnWindowResize() {
62    
63  function crdDetectFeatures() {  function crdDetectFeatures() {
64      if ('ontouchstart' in document.documentElement) {      if ('ontouchstart' in document.documentElement) {
65            g_isTouch = true;
66          document.documentElement.className += ' touch';          document.documentElement.className += ' touch';
67      } else {      } else {
68            g_isTouch = false;
69          document.documentElement.className += ' no-touch';          document.documentElement.className += ' no-touch';
70      }      }
71      if ($.support["transform"]) {      if ($.support["transform"]) {
# Line 76  function crdDetectFeatures() { Line 80  function crdDetectFeatures() {
80  $(function() {  $(function() {
81      crdDetectFeatures();      crdDetectFeatures();
82      $(document).tooltip();      $(document).tooltip();
83        if (g_isTouch) {
84            $("header a[title]" ).tooltip({
85                disabled: true
86            });
87        }
88      $("article img[caption]").each(function() {      $("article img[caption]").each(function() {
89          $(this).after(          $(this).after(
90              "<div class='imgcptn'>" +              "<div class='imgcptn'>" +

Legend:
Removed from v.3268  
changed lines
  Added in v.3269

  ViewVC Help
Powered by ViewVC