Sfoglia il codice sorgente

3dModeling pulic.js 朱俊杰 commit at 2021-01-07

朱俊杰 4 anni fa
parent
commit
c8c03eb547
1 ha cambiato i file con 21 aggiunte e 0 eliminazioni
  1. 21 0
      3dModeling/tjby18/pulic.js

+ 21 - 0
3dModeling/tjby18/pulic.js

@@ -0,0 +1,21 @@
+/**
+ * 说明:检测菜单项是否已打开
+ */
+function checkBtnActives(arr) {
+    for (let i = 0; i < arr.length; i++) {
+        let temp = arr[i];
+        if ($(temp).hasClass('active')) {
+            $(temp).removeClass('active');
+            $(temp).find('.control-menu').removeClass('actives');
+        }
+    }
+}
+/**
+ * 说明:判断是否全屏
+ */
+function checkFull() {
+    var isFull =
+        document.fullscreenElement ||
+        document.mozFullScreenElement ||
+        document.webkitFullscreenElement;
+    //to fix : false || undefined == undefined