This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from "react"; | |
| import { BrowserRouter } from "react-router-dom"; | |
| import AppStore from "./flux/stores"; | |
| import AppDispatcher from "./flux/dispatchers"; | |
| import Loader from "./components/loader"; | |
| import { componentRoutes, leftNavRoutes, rightNavRoutes } from "./routes"; | |
| import { BROWSER } from "./utils/browser"; | |
| import "./App.scss"; | |
| class App extends Component { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SNIPPET | |
| {% comment %} | |
| Collection template, used on current_collection.liquid and current_collection.image.liquid | |
| {% endcomment %} | |
| <div class="compare-basket"> | |
| <button class="action action--button action--compare"><i class="fa fa-check"></i><span class="action__text">Compare</span></button> | |
| </div> | |
| {% assign current_collection = collections['model-1'] %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let node; | |
| let rotation = 0; | |
| let gestureStartRotation = 0; | |
| let gestureStartScale = 0; | |
| let scale = 1; | |
| let posX = 0; | |
| let posY = 0; | |
| let startX; | |
| let startY; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var tx = 0; | |
| var ty = 0; | |
| var scale = 1; | |
| document.addEventListener('wheel', function (e) { | |
| e.preventDefault(); | |
| if (e.ctrlKey) { | |
| var s = Math.exp(-e.deltaY / 100); | |
| scale *= s; | |
| console.log("delta = " + e.deltaY); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import _ from "lodash" | |
| class TheBrowser { | |
| constructor () { | |
| this.window = {} | |
| this.status = false | |
| this.isPhone = false | |
| this.isTablet = false | |
| this.isMediumTablet = false | |
| this.isLargeTablet = false |
NewerOlder