Forked from Nikolay Talanov's Pen Custom select.
A Pen by Mihail Pavlov on CodePen.
Forked from Nikolay Talanov's Pen Custom select.
A Pen by Mihail Pavlov on CodePen.
Request.create @ polling-xhr.js:232 | |
Request @ polling-xhr.js:155 | |
XHR.request @ polling-xhr.js:86 | |
XHR.doPoll @ polling-xhr.js:116 | |
Polling.poll @ polling.js:118 | |
Polling.onData @ polling.js:157 | |
(anonymous) @ polling-xhr.js:119 | |
Emitter.emit @ index.js:134 | |
Request.onData @ polling-xhr.js:267 | |
Request.onLoad @ polling-xhr.js:338 |
var app = require('express')(); | |
var http = require('http').Server(app); | |
var io = require('socket.io')(http); | |
var fs = require('fs'); | |
var port = process.env.PORT || 9002; | |
import { MongoClient } from 'mongodb'; | |
//Allow cors | |
var allowCrossDomain = function(req, res, next) { |
$(selector).on('click', handler); | |
function handler(e){ | |
if(e) e.preventDefault() | |
//doDirtyThings | |
} |
"use strict"; | |
var webpack = require('webpack'); | |
var path = require('path'); | |
var loaders = require('./webpack.loaders'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var DashboardPlugin = require('webpack-dashboard/plugin'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const HOST = process.env.HOST || "127.0.0.1"; | |
const PORT = process.env.PORT || "8888"; |
module.exports = [ | |
{ | |
test: /\.jsx?$/, | |
exclude: /(node_modules|bower_components|public\/)/, | |
loader: "babel-loader" | |
}, | |
{ | |
test: /\.css$/, | |
loaders: ['style-loader', 'css-loader?importLoaders=1'], | |
exclude: ['node_modules'] |
const ComponentToRole = ( { | |
user, | |
pupil, | |
classRep, | |
teacher, | |
supervisor, | |
admin, | |
publisher | |
} ) =>{ | |
if(!user) return pupil; |
import timeTableReducer from '../redux/reducers/timetable'; | |
const initialState = { | |
selecting: false, | |
selectionRanges: {}, | |
clearing: false, | |
start: {}, | |
end: {} | |
}; |
const initialState = { | |
selecting: false, | |
selectionRanges: {}, | |
serverRanges: {}, | |
clearing: false, | |
start: {}, | |
end: {} | |
}; | |
const timetableReducer = (state = initialState, action) => { |