@@ -4,7 +4,7 @@ import { ImportErrorCode, ImportSettings } from '../engine/import/importer.js';
44import { NavigationMode , ProjectionMode } from '../engine/viewer/camera.js' ;
55import { RGBColor } from '../engine/model/color.js' ;
66import { Viewer } from '../engine/viewer/viewer.js' ;
7- import { AddDiv , AddDomElement , ShowDomElement , SetDomElementOuterHeight , CreateDomElement , GetDomElementOuterWidth } from '../engine/viewer/domutils.js' ;
7+ import { AddDomElement , ShowDomElement , SetDomElementOuterHeight , CreateDomElement , GetDomElementOuterWidth } from '../engine/viewer/domutils.js' ;
88import { CalculatePopupPositionToScreen , ShowListPopup } from './dialogs.js' ;
99import { HandleEvent } from './eventhandler.js' ;
1010import { HashHandler } from './hashhandler.js' ;
@@ -221,7 +221,6 @@ export class Website
221221 this . InitDragAndDrop ( ) ;
222222 this . InitSidebar ( ) ;
223223 this . InitNavigator ( ) ;
224- this . InitCookieConsent ( ) ;
225224
226225 this . viewer . SetMouseClickHandler ( this . OnModelClicked . bind ( this ) ) ;
227226 this . viewer . SetMouseMoveHandler ( this . OnModelMouseMoved . bind ( this ) ) ;
@@ -956,21 +955,4 @@ export class Website
956955 this . parameters . headerButtonsDiv . appendChild ( buttonLink ) ;
957956 return buttonLink ;
958957 }
959-
960- InitCookieConsent ( )
961- {
962- let accepted = CookieGetBoolVal ( 'ov_cookie_consent' , false ) ;
963- if ( accepted ) {
964- return ;
965- }
966-
967- let text = Loc ( 'This website uses cookies to offer you better user experience. See the details at the <a target="_blank" href="info/cookies.html">Cookies Policy</a> page.' ) ;
968- let popupDiv = AddDiv ( document . body , 'ov_bottom_floating_panel' ) ;
969- AddDiv ( popupDiv , 'ov_floating_panel_text' , text ) ;
970- let acceptButton = AddDiv ( popupDiv , 'ov_button ov_floating_panel_button' , Loc ( 'Accept' ) ) ;
971- acceptButton . addEventListener ( 'click' , ( ) => {
972- CookieSetBoolVal ( 'ov_cookie_consent' , true ) ;
973- popupDiv . remove ( ) ;
974- } ) ;
975- }
976958}
0 commit comments