This repository was archived by the owner on Oct 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- DDH . geometry_goodie = DDH . geometry_goodie || { } ;
1+ DDH . geometry = DDH . geometry || { } ;
22
33( function ( DDH ) {
44 "use strict" ;
55
6- DDH . geometry_goodie . build = function ( ops ) {
6+ DDH . geometry . build = function ( ops ) {
77 return {
8- onShow : function ( ) {
8+ onShow : function ( ) {
99 var formulaSelector = '.geometry-formulas .formula .dot' ;
1010 var svgSelector = '.geometry-svg *' ;
11-
11+
1212 $ ( svgSelector + ',' + formulaSelector ) . hover (
1313 function ( ) {
1414 // Get Current geoemetry type
@@ -19,18 +19,18 @@ DDH.geometry_goodie = DDH.geometry_goodie || {};
1919 // JQuery 1.1 cant select SVGs by normal selectors
2020 var svg = document . querySelector ( ".geometry-svg ." + datatype ) ;
2121 svg . classList . add ( "hover" ) ;
22-
23-
22+
23+
2424 } , function ( ) {
2525 // Remove hovers when not hovering
2626 var datatype = $ ( this ) . data ( 'type' ) ;
2727 $ ( '#geometry--goodie .' + datatype ) . removeClass ( "hover" ) ;
28-
28+
2929 var svg = document . querySelector ( ".geometry-svg ." + datatype ) ;
3030 svg . classList . remove ( "hover" ) ;
3131 }
3232 ) ;
3333 }
3434 } ;
3535 } ;
36- } ) ( DDH ) ;
36+ } ) ( DDH ) ;
You can’t perform that action at this time.
0 commit comments