text
stringlengths
7
3.69M
'use strict'; angular.module('happoshuApp') .controller('SimulationGroupFilesCtrl', function ($scope, ScenarioService) { $scope.simulationGroupNames = null; ScenarioService.getSimulationGroupNames().then(function (dataResponse) { $scope.simulationGroupNames = dataResponse; })...
export const ACTOR_CHEERIO_CHECKER_NAME = 'lukaskrivka/website-checker-cheerio'; export const ACTOR_PUPPETEER_CHECKER_NAME = 'lukaskrivka/website-checker-puppeteer'; export const ACTOR_PLAYWRIGHT_CHECKER_NAME = 'lukaskrivka/website-checker-playwright';
'use strict'; /* jshint node: true */ /* globals browser, describe, it, beforeAll, EC, expect, protractor, xit, afterAll */ var dpage = require('../pages/personalDetailsPage.js'); var homeP = require('../../../common/pages/homePage.js'); var request = require('request'); afterAll(function(done) { process.nextTick(d...
const numbers = [2, 3, 4, 5, 6, 7]; // for (let i = 0; i < numbers.length; i++) { // const element = numbers[i]; // const square = element * element; // console.log(square); // } // const result = numbers.filter(x => x > 4); // console.log(result); // function square (element) { // return element * el...
'use strict'; const express = require('express'); const router = express.Router(); const track = require('../../service/track'); // POST /admin/tracks router.post('/', (req, res) => { const title = req.body.title; const genres = JSON.parse(req.body.genres); const artists = JSON.parse(req.body.artists); ...
/** * Scriptdoc-file for jQuery 1.2.3 * * Created: Jan 25, 2007 19:31:20 GMT * Courtesy of Edwin Martin * * Updated: July 12, 2007 * Updated by Michelle Petersen * * Updated: Oct 15, 2007 * Updated by Davey Waterson * * Updated: Feb 26, 2008 * Updated by Michelle Petersen */ /** * This function accepts ...
import '../../../node_modules/normalize.css/normalize.css' import './App.scss'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.jsx' ReactDOM.render(<App/>, document.body);
import { renderString } from '../../src/index'; describe(`Returns a sequence of blog post objects for the specified blog, by the specified author, sorted by most recent first`, () => { it(`unnamed case 0`, () => { const html = renderString(`{{ blog_recent_author_posts('default', 'jared-stehler', 5) }}`); ...
import React from 'react' import {shallow} from 'enzyme' import Navbar from './Navbar' describe('Navbar', () => { it('should be defined', () => { expect(Navbar).toBeDefined() }) it('should be rendered', () => { const navbar = shallow(<Navbar />) expect(navbar.find('.navbar')).toHaveLength(1) }) }...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import styled from 'styled-components'; const Link2 = styled(Link) ` z-index: 10; `; const Form = styled.form` padding: 0 10px; `; class Search extends Component { /* --------------- Search props --------------- - submi...
var tokki = angular.module("directives").directive("resumenVenta", ["totalesService", function(totalesService){ return { restrict: "E", templateUrl: "pages/ventas/resumenVenta/resumenVenta.html", } } ])
// @flow import {fetchActivities} from './actions' type ActivityAction = { type: string, payload: any } type Activity = { [key: string]: { schedule: string, price: string, category: string } } type Category = { [key: string]: { description: string, name: string } } type activitiesSta...
import { Component } from 'react' import './App.css' import 'bootstrap/dist/css/bootstrap.min.css' import "react-loader-spinner/dist/loader/css/react-spinner-loader.css" import Routes from './routes' import Navigation from './layout/Navigation/Navigation' import Footer from './layout/Footer/Footer' import AuthService ...
import { BASE_PATH_FRAGMENT, WEBSITE_ID_PATH_FRAGMENT } from '../constants'; export const RESOURCE_NAME = 'callmeback'; export const PATHNAME_TEMPLATE = `${BASE_PATH_FRAGMENT}/${RESOURCE_NAME}${WEBSITE_ID_PATH_FRAGMENT}`;
let MultiComponent = require("./multicomponent.js"); class Guide extends MultiComponent{ constructor(params){ super(params); let pos = params.position || {x: 0, y: 0}; this.set.Text = new UI.Components.Text($.extend(true, {position: {x: pos.x + 40, y: pos.y + 14}, id: "Text", color: "white"...
(function($) { /** * Opens Facebook share dialog and returns success/failvia callback * @param {String} href - URL to share * @param {Object} callback - Callback function accepting one parameter (success Bool) */ window.facebookShare = function(href, callback) { // Append GA tags to href href +...
import React, { Component } from "react"; import TopNav from "./TopNav"; class Notfound extends Component { state = {}; render() { return ( <div> <TopNav /> <h2 className="maintitle title"> Relax. The page you're looking for doesn't exist. </h2> </div> ); } } export default Notfound;
import React from "react"; import WelcomeMessage from "../../components/patient-ui/Home/WelcomeMessage"; import {Container} from "@material-ui/core"; import ServicesCard from "../../components/patient-ui/Home/ServicesCard"; import CovidCard from "../../components/patient-ui/Home/CovidCard"; function Home() { retu...
var app = angular.module('baseApp',[]); $.ajaxSetup({ type: 'POST', complete: function(xhr,status) { var sessionStatus = xhr.getResponseHeader('sessionState'); if(sessionStatus == 'SO100-001') { var top = getTopWinow(); top.location.href = '/login.html'; ...
var API_GET_ALLOWLIST = "/allowlist"; var API_SERVICES = "/settings/service"; var API_CRUD_ALLOWLIST = "/allowlist/entry/"; var API_EXECLOG = "/execution/"; var API_KEY = ""; // Utility functions function convertJsonToGet(formJSON) { let formURL = ""; for (var key in formJSON) { formURL += key + "=" + formJSON...
import React, { PureComponent } from 'react'; import { Animated, Text, TextInput, TouchableOpacity, View } from 'react-native'; import PropTypes from 'prop-types'; import styles from './styles'; import * as colors from 'kitsu/constants/colors'; const HIT_SLOP = { top: 10, left: 10, bottom: 10, right: 10, }; ...
const studentRepository = require('../repositories/student.repository') const roomRepository = require('../repositories/room.repository') const sumCapacity = rooms => rooms.reduce((total, room) => total + room.capacity, 0) const selectRooms = numberOfStudents => (selected, room) => sumCapacity(selected) < numberO...
import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; import { registerMicroApps, start } from 'qiankun'; import Vue from 'vue'; import App from './App.vue'; import router from './router/index'; Vue.use(ElementUI); Vue.config.productionTip = false; // Angular9 // function genActiveRule(url...
const { Status } = require('./status'); const { Hash } = require('./hash') module.exports = { Status, Hash }
import React, { Component } from 'react'; import { View, Image } from 'react-native'; import {CardSectionNoBorder}from '../../Common' import {Actions,ActionConst}from 'react-native-router-flux'; class WelcomePage extends Component { constructor(props){ super(props) setTimeout(function () { ...
const createError = require('http-errors'); const express = require('express'); const path = require('path'); const cookieParser = require('cookie-parser'); const logger = require('morgan'); const fs = require('fs'); const multer = require('multer') const ejs = require('ejs'); const bodyParser = require('body-parser');...
import React from 'react'; import './App.css'; // import {Typography} from '@material-ui/core'; import {Container} from '@material-ui/core'; import Comments from "./components/Comments" // import { Divider, Avatar, Grid, Paper } from "@material-ui/core"; function App() { return ( <div className="App"> <Con...
'use strict'; var app = angular.module('ecobitApp', ['ecobitApp.auth', 'ecobitApp.admin', 'ecobitApp.constants', 'ngCookies', 'ngResource', 'ngSanitize', 'btford.socket-io', 'ui.router', 'ui.bootstrap', 'validation.match', 'xeditable', 'ui-notification', 'angularMoment', 'ui.calendar', 'ui.select' ]) .conf...
import React from "react"; import PropTypes from "prop-types"; import styles from "./channelHeader.css"; function ChannelHeader({ title, children }) { return ( <header className={styles.header}> <h1 className={styles.title}>{title}</h1> {children} </header> ); } ChannelHeader.defaultProps = { ...
// editted dialog system by nathan //var currentSpeaker; //don't actually need because the parser will decide for u, just need a decider for which JSON to play and which DBOX to use dialogSystem = function(game){ // dialog constants this.DBOX_X = 0+140; // dialog box x-position this.DBOX_Y = 350+50; // dialog ...
const DOMNodeCollection = require('./dom_node_collection.js'); window.$l = function(arg) { if (arg instanceof HTMLElement) { const elArr = [arg]; return new DOMNodeCollection(elArr); } else { const nodeList = Array.from(document.querySelectorAll(arg)); return new DOMNodeCollection(nodeList); } };...
(function () { 'use strict'; angular .module('app.auth') .controller('LoginController', LoginController); LoginController.$inject = ['$location', '$stateParams', '$scope', 'AuthService', 'BraveAuthConfig']; /** * * @param {object} $location location * @param {object} $stateParams location ...
import React from 'react'; import { BrowserRouter as Router, Route, Link} from 'react-router-dom'; import Arrow from "./Arrow"; import FormContainer from "./FormContainer"; import LearnForms from "./LearnForms"; import MainContent from "./MainContent"; import ChildState from "./ChildState"; import FormsPractice from "....
// learn 23 Утган хандалт болон заагч хандалтын тухай - value VS reference // Утга олголт: 1. энгийн утга олголт буюу value ===> утгын өөрчилөхөд хуулбар нь дамждаг байгаа. // 2. заалтаар утга олголт буюу reference ===> утгын өөрчилөхөд өөрөө дамждаг байгаа. //////////////////////////////// 1. э...
module.exports = { "extends": "fbjs" };
console.log(null || 2 || undefined); console.log(1 && null && 2); console.log(null || 2 && 3 || 4);
function areaOfCountry(name, area) { const prozent = ((1 / 1489400) * area).toFixed(2); return `${name} is ${prozent}% of the total world's landmass`; } const result = areaOfCountry('Russia', 17098242); console.log(result);
/* * Toady * Copyright 2015 Tom Shawver */ // Dependencies var _ = require('lodash'); var ribbit = require('../app/ribbit/Ribbit'); var util = require('util'); // Parse command and arguments var cmd = process.argv[2] ? process.argv[2].toLowerCase() : ''; var args = process.argv.slice(3).join(' '); // Route comman...
import { Game } from './game.js'; import { MEDIUM } from './gameSpeed.js' import { Speed } from './gameSpeed.js' var game = new Game(); game.runAtSpeed(MEDIUM); //game.runAtSpeed(Speed.MEDIUM);
(function() { 'use strict'; angular .module('Directives') .directive('contentTitle', contentTitle); contentTitle.$inject = []; function contentTitle() { var directive = { templateUrl: 'core-modules/directives/content-title/content-title.directive.html', link: l...
var RunView = Backbone.View.extend({ model: null, tagName: 'li', template(model) { // Wire up model events return ` <a href="#${model.id}"> <span class="list-items date">${model.get('date')}</span> <span class="list-items time">${model.get('time')}</span> </a>`; }, rende...
import React, { Component } from 'react' import { connect } from 'react-redux'; import TextAreaFieldGroup from '../common/TextAreaFieldGroup' import { sendApplication } from '../../actions/career'; import TextFieldGroup from '../common/TextFieldGroup'; class OfferForm extends Component { constructor(props) { su...
describe("FolderModel", function () { var folder; beforeEach(function () { folder = new FolderModel(); }); it("should be initialized with default values", function () { expect(folder.get("id")).toEqual(null); expect(folder.get("title")).toEqual(""); expect(folder.get(...
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { openLinkInNewTab, truncateText } from '../utils.ts'; import NotFound from '../assets/not-found.jpg'; const Article = styled.div` width: 20em; height: 25em; border: solid 1px black; cursor: pointer; ...
import React from "react"; import { ApolloProvider, ApolloClient, InMemoryCache, createHttpLink } from "@apollo/client"; import { setContext } from "@apollo/client/link/context"; import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; import Header from "./components/header/"; import Home...
var MyMath; (function (MyMath) { var PI = 3.14; function calculate_circumference(diameter) { return PI * diameter; } MyMath.calculate_circumference = calculate_circumference; function calculate_rectangle(length, width) { return length * width; } MyMath.calculate_rectangle = c...
import React,{useState,useEffect,useCallback, useLayoutEffect} from 'react'; import creativeLogo from '../assets/images/creative-logo1.png'; import Leftbar from './header/Leftbar' import Rightbar from './header/Rightbar' import { MoreHorizontal } from 'react-feather'; import {SearchBarToggle, MobileRightToggle, Switch...
/** * Created by DELL on 2017/11/16. */ const userManageDao=require("../dao/userManageDao.js") const userManageController={ pageCount:5, getAllmanageUser(request,response){ console.log("in usermanage"); let params=[]; params.push((request.params.page-1)*userManageController.pageCou...
var yarp = require('../../yarp'); var ibm_sound_port_receiver = new yarp.Port('sound'); ibm_sound_port_receiver.open('/ibmjs/sound:i'); var ibm_speech_to_text_sender = new yarp.Port('bottle'); ibm_speech_to_text_sender.open('/ibmjs/speech_to_text:o'); const sample_rate = 16000; const bit_depth = 16; const num_sample...
import React from "react"; import { push } from "react-router-redux"; import { bindActionCreators } from "redux"; import { connect } from "react-redux"; import { getIexData } from "../../../modules/PullStocks"; import Company from "../../company"; import { checkSign, setColor } from "../../../helpers/helpers"; const ad...
// @flow weak import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles, createStyleSheet } from 'material-ui/styles'; import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List'; import Drawer from 'material-ui/Drawer'; import Divider from 'material-ui/Divide...
(function () { var warped_image = document.getElementById('warped_image'), warp_canvas = document.createElement('canvas'), warp_context = warp_canvas.getContext('2d'); // inputs var warp_percentage_input = document.getElementById('warp_percentage'); // for reference, the full method function getQuadratic...
let nome = "Jose"; let sobrenome = "Silva"; let frase = `Bem vindo usuário, ${nome} ${sobrenome}!`; document.querySelector('p').innerHTML = frase; function criarcard(){ let title = document.querySelector(".titulo").value; let url = document.querySelector(".url").value; let card = document.getElementById(...
app.component('main', { binsings: {}, templateUrl: 'App/Components/mainTemplate.html', controller: function () { this.mainTitle = 'Inbox'; } })
export { default } from '@smile-io/ember-smile-polaris/components/polaris-color-picker/hue-picker';
import React, {useContext, useEffect, useState} from 'react'; import {ApiStoreContext} from "../../stores/api_store"; import styles from "./styles/UserWall.module.scss"; import {observer} from "mobx-react"; const UserWall = observer((props) => { const context = useContext(ApiStoreContext); if (context.loggedI...
import Link from 'next/link'; import styles from '../styles/Home.module.css'; const Links = () => { return ( <div> <div className={styles.container}> <div className={styles.grid}> <Link href='/africa'> <div className={styles.card}> ...
var searchData= [ ['gradojpeg',['GradoJPEG',['../classpresentacion_1_1form_1_1PopUp__Comp.html#acf726751a39641f547274bfe8176fedd',1,'presentacion::form::PopUp_Comp']]] ];
const request = require('request-promise-native'); const moment = require('moment'); const config = require('../config'); const UnauthorizedError = require('../errors/UnauthorizedError'); class FacebookApi { constructor(accessToken = null) { this.accessToken = accessToken; } async getAccessToken(exchangeTo...
// 链式调用 import ajax from './05-promise-ajax.js' let url = "api/users.json" ajax(url) .then(function (value) { // 1. then 方法返回一个新的 promise 对象 console.log(111); console.log(value); }).then(function (value) { // 2. 后一个 then 方法 实际上就在为上一个 then 方法返回的 promise 做回调注册 console.log(222); console.log(value...
function getString() { let userInput = document.getElementById("userInput").value; if(typeof userInput === "string") { let reversedString = reverseString(userInput); displayString(reversedString); } else { alert("Error: Please enter a string"); } } function reverseStr...
const Store = require('flux/utils').Store; const dispatcher = require('../dispatcher/dispatcher'); const SessionConstants = require('../constants/session_constants'); const hashHistory = require('react-router').hashHistory; let _currentUser = {}; const SessionStore = new Store(dispatcher); SessionStore._login = func...
import util from 'util'; import { SEVERITY_NAME } from '../constants'; /** * Console adapter * */ export default class Console { /** * * @param {Object} options * @constructor */ constructor(options) { this._options = options || { enabled: true }; if (!this._options.hasO...
$(document).ready(function() { // Wait for the data to load setTimeout(function() { // If data was loaded if($('.movie').length) { // Initially select the first loaded movie $('.movie:nth-child(1)').addClass('selected'); // Selection of movie with mouse on h...
function InitializeGuard(multi){ var canvas = document.getElementById('mainCanvas'); var context = canvas.getContext('2d'); context.scale(1,1); GUARD = { initialized: true, spotAng: 0, x : 10, y : 10, width: 150, height: 200, speed: 5, latest : { x : 0, y : 0 ...
var variables________________________________9________________8js________8js____8js__8js_8js = [ [ "variables________________9________8js____8js__8js_8js", "variables________________________________9________________8js________8js____8js__8js_8js.html#ad9c427e331cc6a0682368a6a3ab1517c", null ] ];
const fs = require('fs'); const schedule = require('node-schedule'); const ConfigBuilder = require('../components/configbuilder'); const GekkoManager = require('./gekkomanager'); const config = require('../config/config'); const {StrategyFinder} = require('../components/strategyfinder'); const InfoMessage = { STAR...
define(['jquery', 'echarts'], ($, echarts) => { let module = {}; let chart; module.init = (el) => { var chart = echarts.init(document.getElementById(el)); var options = { tooltip: { formatter: "{a} <br/>{c} {b}" }, toolbox: { show: true, feature: { ...
import React from 'react'; class EditingBy extends React.Component { constructor(props) { super(props); this.isModifing = this.isModifing.bind(this); } isModifing(editedBy) { if(editedBy == undefined) { return ''; } if(editedBy.length ...
#!/usr/bin/env node const { extendStack } = require('..') function subsystem (err) { return extendStack(err) } setImmediate(() => { const err = subsystem(new Error('some-error')) console.log(err) })
import React from 'react'; import './index.css'; export class AppContentTripDetailFeature extends React.Component{ render(){ const { tripLine } = this.props.tripDetailData; let tripArrA = [tripLine.facilities, tripLine.amusement, tripLine.diet, tripLine.equipmentLeasing, tripLine.qualification]; let nam...
function set_form(id) { $('.form').slideUp(); $(id).slideDown(); $('#back').slideDown(); $('.bottom3').slideUp(); } function init_botones(){ $('.instrucciones').slideUp(); $('.bottom3').slideDown(); } function back() { $('.form').slideUp(); $('#results_table').slideUp(); $('.bottom3').slideDown(); $('#back...
const { Error: JSONAPIError } = require('jsonapi-serializer'); const { getStatusText, INTERNAL_SERVER_ERROR } = require('http-status-codes'); const errors = require('./dictionaries'); class APIError extends Error { constructor({ status = INTERNAL_SERVER_ERROR, code = false, defaultCode = false, erro...
$(document).ready(function() { var randomNumber = ""; var emeraldBlue = ""; var emeraldGreen = ""; var emeraldPurple = ""; var emeraldRed = ""; var userTotal = 0; var wins = 0; var losses = 0; $("#numberWins").text("Wins " + wins); $("#numberLosses").text("Losses " + losses); ...
import './custom.scss' console.log('hello world')
/* 我的实现 首先判断数值的大小 */ function check(num) { if(num < 0 || num === 0) { return false; } if(num === 1) { return true; } while(num = num / 2) { if(num % 2 === 0) { return true; } else { continue; } } return false; } /* 网上的简单的...
import React from 'react' import { connect } from 'react-redux' import { runAll, runTest } from './actions' import apiMeta from '../apiDetails/./apiManifest' class APIStructureTester extends React.Component { constructor () { super() this.runAll = this.runAll.bind(this) } runAll() { runAll(this.prop...
import * as actionTypes from './ActionTypes'; export const addToCart = item => { return dispatch => { dispatch({ type: actionTypes.ADD_TO_CART, item: item }); dispatch(updateTotalPrice()); dispatch(showCartConfirmation()); setTimeout(function() { ...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import moment from 'moment'; import { getSelected } from '../../ducks/currency'; import { fetchTransactionsRequest, getRecords } from '../../ducks/transactions'; import { getWalletUsd } from '../../ducks/wallet'; import styled from 'styled...
import React, { useState, useEffect } from 'react' import api from '../../api' import Stream from './Stream/Stream' import styles from './Sidebar.module.css' const Sidebar = () => { const [ topStreams, setTopStreams ] = useState([]) useEffect(() => { const fetchData = async () => { const re...
import {NavigationContainer} from '@react-navigation/native'; import {createStackNavigator} from '@react-navigation/stack'; import React from 'react'; import SignInScreen from './src/screens/SignInScreen'; import SignUpScreen from './src/screens/SignUpScreen'; import SplashScreen from './src/screens/SpashScreen'; cons...
import vuescroll from 'vuescroll' export default { props: [], components: { vuescroll }, data() { return { slide_options: { vuescroll: { mode: 'slide', detectResize: true, pullRefresh: { enable: true }, pushLoad: { enable: true, auto: true, autoLoadDistan...
import React from 'react'; import './logoBar.css'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faFacebook, faTwitter, faDiscord, faInstagram } from "@fortawesome/free-brands-svg-icons" export default class LogoBar extends React.Component { render() { return ( ...
import React, { Component } from "react"; import { getDog, deleteDog } from "../../actions/dogActions"; import { connect } from "react-redux"; import PropTypes from "prop-types"; import Moment from "react-moment"; import VaccinTable from "./VaccinTable"; import { Link } from "react-router-dom"; export class DogDetail ...
import React, {Component} from "react"; import {Button, Form, Input} from "antd"; import IntlMessages from "util/IntlMessages"; const FormItem = Form.Item; class ResetPassword extends Component { handleSubmit = (e) => { e.preventDefault(); this.props.form.validateFields((err, values) => { ...
/** * Created by xuwusheng on 15/12/18. */ define(['../../../app'], function (app) { app.factory('logisticsSettle', ['$http','$q','$filter','HOST',function ($http,$q, $filter,HOST) { return { getThead: function () { return [ {name:'序号',type:'pl4GridCount'}, ...
import ScreenPic from "./screen-pic"; export default ScreenPic;
const passport = require('passport'); const passportGoogle = require('passport-google-oauth'); const config = require('../config'); const User = require('../model/user'); const passportConfig = { clientID: '459875133220-6b57t8jq619cnaab7v99f4ru16308u7m.apps.googleusercontent.com', clientSecret: 'dnTpZD6lCvAQkF...
const $ = jQuery = jquery = require ("jquery") const notification = require ("cloudflare/core/notification") const common = require ("cloudflare/common") $(document).on ( "cloudflare.speed.auto_minify.initialize", ( event, data ) => { var jsState = data.response.result.value.js === "on" var cssState = data.response....
'use strict'; const yeoman = require('yeoman-generator'); const chalk = require('chalk'); const yosay = require('yosay'); // Key = pretty name // Value = generator name const generators = { 'ES6 Module': 'ES6' }; module.exports = yeoman.Base.extend({ prompting: function () { // Have Yeoman greet the user. ...
// components/Login.js import React, { Component, PropTypes } from 'react' import Input from './Input'; import { Form } from 'formsy-react'; import Dropzone from "react-dropzone"; import { config } from '../config.js' const API_URL = config.API_URL; export default class EditProfilForm extends Component { constru...
import JSONCell from "./json.vue"; import TimestampCell from "./timestamp.vue"; import NumberCell from "./number.vue"; import StringCell from "./string.vue"; import BooleanCell from "./boolean.vue"; import DurationCell from "./duration.vue"; export const columnTypes = { timestamp: { component: TimestampCel...
import logo from './logo.svg'; import './App.css'; import Topic from './Topics/Topics' import Chatroom from './Chatroom/ChatRoom' import Join from './Join/JoinRoom' import{ useState, useEffect} from 'react'; import { useHistory, BrowserRouter as Router, Route, Switch, Link } from 'react-router-dom'; import { Anima...
import React, { Component } from "react"; import axios from 'axios'; import Menu from 'sub-antd/lib/menu'; const SubMenu = Menu.SubMenu; class SysMenu extends Component { constructor(props){ super(props); this.state = { menuTree:[] } } handleClick = (e)=>{ if(type...
({ qsToEventMap: { 'startURL': 'e.c:setStartUrl' }, qsToEventMap2: { 'expid': 'e.c:setExpId' }, handleSelfRegister: function(component) { var accountId = component.get("v.accountId"); var regConfirmUrl = component.get("v.regConfirmUrl"); var firstname = com...
this.VelhaMania.module('Utilities', function (Utilities, App, Backbone, Marionette, $, _) { var API = { mixinTemplateHelpers: function (target) { var templateHelpers; if (this.templateHelpers) { templateHelpers = this.templateHelpers.call(this, target); ...
for(var a=0; a<=10; a++){ console.log(a); if(a%2 ==0){ console.log('even'); } else{ console.log('odd'); } }
// Written by Euno Cho, Fall 2019 $(document).ready(function() { "use strict"; var av_name = "partDeriv2CON"; var av = new JSAV(av_name, {animationMode: "none"}); //building tree var tr = av.ds.tree({nodegap: 15, top: -30, left: 350}); var rootA = tr.root("A"); var firstC = tr.newNode("a"); var secondC...
import React, { Component } from 'react'; import Calendar from 'react-calendar-mobile'; import './App.css'; class App extends Component { constructor(props) { super(props); this.state = { date1: '', date2: '', month: '', week: '', } } onSelect1(value) { this.setState({ ...
import React, { Component } from 'react' import './index.css' import TypeSelect from '../TypeSelect' import FastBuild from '../fastModule/FastBuild' import AccurateBuild from '../accurateModule/AccurateBuild' import EditTemplate from '../EditTemplate' import FastEditBuild from '../fastEditModule/FastEditBuild' import A...