Skip to content

Instantly share code, notes, and snippets.

View mssyogi's full-sized avatar
🎯
Focusing

Yogendra Kumar mssyogi

🎯
Focusing
View GitHub Profile
@mssyogi
mssyogi / image zoom used in magento2
Created February 27, 2018 11:36
image zoom used in magento2
<!-- fotorama.css & fotorama.js. -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/fotorama/4.6.4/fotorama.css" rel="stylesheet"> <!-- 3 KB -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/fotorama/4.6.4/fotorama.js"></script> <!-- 16 KB -->
<!-- 2. Add images to <div class="fotorama"></div>. -->
<div class="fotorama" data-allowfullscreen="true" data-fit="scaledown" data-nav="thumbs">
<img src="https://s.fotorama.io/1.jpg">
<img src="https://s.fotorama.io/2.jpg">
@mssyogi
mssyogi / server.js
Created March 18, 2020 12:14
securenodeserver
const express = require('express');
const fs = require('fs');
const path = require('path');
const cors = require('cors');
const compression = require('compression');
const helmet = require('helmet');
const morgan = require('morgan');
const Routes = require('./routes');
const Database = require('./database');
const logger = require('./config/logger');