text
stringlengths
7
3.69M
import React from 'react'; import { Jumbotron, Button } from 'react-bootstrap'; import { Link } from 'react-router-dom'; export default function ErrorPage({ message, code }) { return ( <Jumbotron className="bg-transparent"> <h1 className="errorTitle text-center text-white mt-5">{code || "404"}<...
var blogModule = angular.module("BlogModule", []); blogModule.controller('blogCtrl', function($http) { var self = this; self.items = []; var fetchData = function(){$http.get('/blog').success(function(blogs) { self.items = blogs; }); }; fetchData(); }); var shareModule = a...
let rows = table.td.slice(); let csvContent = ""; rows.forEach(function (rowArray) { rowArray.map(function (m, i) { rowArray[i] = m; }); let row = rowArray.join(","); csvContent += row + "\r\n"; }); let fileName = ""; let strMimeType = 'application/octet-stream;charset=utf-8'; let dataURI = encodeURI(csvContent...
const fillWithChars = (inputSys, outputSys, pivotSys) => { const charCodeDiff = 55 const fromDict = {} const toDict = {} if (outputSys > pivotSys) for (let i = pivotSys; i < outputSys; i++) toDict[i] = i + charCodeDiff if (inputSys > pivotSys) for (let i = pivotSys; i < inputSys; i++) from...
const express = require('express') const router = express.Router() const controller = require('../controller/user') router.post('/createUser', controller.createUser) router.post('/login', controller.userLogin) module.exports = router
import React from "react"; import { Dialog } from "@material-ui/core"; import "assets/scss/confirm-dialog.sass"; const ImagePreview = ({ open, src, close }) => { return ( <Dialog open={open} onClose={close} aria-labelledby="image-preview-title" aria-describedby="image-preview-description...
module.exports = { /* ** Headers of the page */ head: { title: 'starter', meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'description', name: 'description', content: 'Nuxt.js project' } ], link: [ { rel: 'icon', ...
import P from 'bluebird' import fetchJson from './fetch-json' import { getResolvedActionType, getRejectedActionType } from './utils' export default function fetchAction({ data, type, ...fetchArgs, }) { return dispatch => { dispatch({ type, payload: data, }) return fetchJson({ ...fetchA...
angular.module('tdf.utilities').factory('Utilities', [ function() { return { /** * Removes all objects from list where object[propertyname] equals * property. * * Note that the operation is performed in-place, though the * result i...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; /** * A component that shows the player's score as well as the answers. */ class ResultComponent extends Component { render() { const { quizData } = this.props; return ( <div className="result"> ...
const router = require("express").Router(); const blogController = require('../controllers/blogController'); router.route('/create') .post([], blogController.createBlog); router.route('/list') .get([], blogController.listBlog); module.exports = router;
import React, { useEffect, useState } from 'react'; import { Form, Button, Dropdown } from 'react-bootstrap' import { useHistory } from "react-router-dom"; import DayPickerInput from 'react-day-picker/DayPickerInput'; import { axios_instance } from '..'; import Select from 'react-select' import "../../node_modules/reac...
import { combineReducers } from 'redux'; import * as types from '../types/baby'; const order = (state = [], action) => { switch (action.type) { case types.CREATE_BABY: { return [ ...state, action.payload.id]; } default: { return state; } } }; const byId = (state = {}, action) => { ...
define([ "backbone", "modules/finger/fingers" ], function (Backbone, Fingers) { "use strict"; var fingers = new Fingers([ {id: 1, place: {x: 396, y: -30}}, {id: 2, place: {x: 434, y: 38}}, {id: 3, place: {x: 499, y: 38}}, {id: 4, place: {x: 564, y: 42}}, {id: 5, place: {x: 633, y: 37}}, {id: 6, place: ...
/* * events.js - Single library to handle generic events * The MIT License (MIT) * * Copyright (c) 2014 Jesús Manuel Germade Castiñeiras <[email protected]> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to ...
//用途:1.用于人员招聘模块 面试流程 2.客户管理 //2014-10-25 12:43 李晓彤 //----------------------------------------------------------面试流程------------------------------------------------------------------- //创建预约 function showActDlg_DGItems(datagrid, title, msg, url, width, height) { checkOnline() var ids = []; var rows = ...
var page = new tabris.Page({ title: 'Hello, World!', topLevel: true }); var button = new tabris.Button({ text: 'Login', layoutData: {centerX: 0, top: 100} }).appendTo(page); button.on('select', function() { window.plugins.googleplus.login( { }, function (obj) { navigator.notification.alert(obj);...
import react from "react"; import Hook from "./styletheme"; import LearnMore from "./LearnMore"; import { useState, useEffect } from "react"; import * as React from "react"; import Card from "@mui/material/Card"; import CardActions from "@mui/material/CardActions"; import CardContent from "@mui/material/CardContent"; i...
define([ 'angular' , './namespace' , 'ngTimeline' ], function (angular, namespace) { 'use strict'; /* Sepacial for search engine diff widgets: 1. abbr. widgets according to the query string 2. categoried result page according to the query string with loadMore pager={page:n, pageSize...
import { Platform } from 'react-native'; import Firebase from './index'; // TODO: // move services/Firebase functionality to services FBKit, // and refuse to use services/Firebase in project export default class FBStorage { static uploadFile( file, type, objectId, path, metadata = { contentType: ...
/* eslint-disable no-unused-vars */ import React, { useState, useEffect } from "react"; import { useSelector, useDispatch } from "react-redux"; import { Modal } from "react-bootstrap"; import styles from "../../styles/confirmdelete.module.css"; export default function ConfirmDelete(props) { const {isDeletePending} =...
import * as actions from '../actions/actionTypes'; const initialState = { category:[], isPending:false, isFulfilled: false, isRejected: false, }; const categoryReducers = (state = initialState,action)=>{ switch (action.type){ case actions.fetchCategory + actions.pending: return { ...state,...
// block_huntingPost.js // for DanIdle version 4 // The place where players hunt for nearby game animals. Produces meats, along with other animal-based resources (such as furs, bones and feathers) import { blockOutputsItems, blockShowsOutputItems, blockHasWorkerPriority, blockDeletesClean } from "./activeBlock.js"; im...
/* * @akoenig/website * * Copyright(c) 2017 André König <[email protected]> * MIT Licensed * */ /** * @author André König <[email protected]> * */ import styled from "styled-components"; const Social = styled.ul` display: flex; margin: 0; padding: 0; list-style-type: none; @media (max-w...
const Example = require("../models/example.model"); module.exports.findAllExamples = (req, res) => { console.log("im trying to find all the examples!!!"); Example.find() .then((allExamples) => res.json({ results: allExamples })) .catch((err) => res.json(err)); }; module.exports.createNewExam...
// ROUTES // app.get("/articles", (req, res) => { // Article.find((err, result) => { // if (err) { // res.send(err); // } else { // res.send(result); // } // }); // }); // post data to db // app.post("/articles", (req, res) => { // const newArticle = new Article({ // title: req.body....
var orm = require("../config/orm.js"); var burger = { burgerAll : function(cb){ orm.burgerAll("burgerlist",function(err,data){ cb(err,data); }); }, burgerCreate : function(burgeName,cb){ orm.burgerCreate("burgerlist","burger_name",burgeName,function(err,data){ ...
module.exports = require('./configs/eslint/node');
/*! * froala_editor v2.7.2 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms/ * Copyright 2014-2017 Froala Labs */ !function (a) { "function" == typeof define && define.amd ? define(["jquery"], a) : "object" == typeof module && module.exports ? module.exports = function ...
const mongoose = require("mongoose"); const DonutStoreSchema = new mongoose.Schema({ place_id: String, name: String, formatted_address: String, rating: Number, photo: { html_attributions: String, height: Number, width: Number, photo_reference: String, }, week...
import React, { Component, lazy, Suspense } from 'react'; import { Route, Switch, Redirect } from 'react-router-dom'; import { connect } from 'react-redux'; import Layout from './components/layout/Layout'; import BurgerBuilder from './container/BurgerBuilder'; // import Checkout from './container/Checkout/Checkout'; /...
import React from "react" import { Link, graphql } from "gatsby" import { node } from "prop-types" import { css } from "@emotion/core" import Layout from "../components/layout" const AllProducts = ({ data }) => { const product = data.allShopifyProduct console.log("this is product: ", product) console.log("this i...
import React from 'react' import { AppContainer } from '../components' export default () => ( <AppContainer> <h1>Hello About!</h1> </AppContainer> )
import React from "react"; import { View } from "react-native"; import { StyleSheet, Text, Image, TouchableOpacity, FlatList } from 'react-native'; import AntDesign from 'react-native-vector-icons/AntDesign'; import { Feather } from '@expo/vector-icons'; import { Ionicons } from '@expo/vector-icons'; import Bikelist fr...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { AppBar, MenuItem, Divider } from 'material-ui'; import NavDrawer from '../navigators/NavDrawer'; import { fetchMenus, nextMenu, prevMenu } from '../actions/MenuActions'; import { grey800 } from 'material-ui/styles/colors'; ...
import axios from 'axios'; import { USER_DETAILS_FAIL, USER_DETAILS_REQUEST, USER_DETAILS_SUCCESS, USER_REGISTER_FAIL, USER_REGISTER_REQUEST, USER_REGISTER_SUCCESS, USER_SIGNIN_FAIL, USER_SIGNIN_REQUEST, USER_SIGNIN_SUCCESS, USER_SIGNOUT, USER_UPDATE_PROFILE_FAIL, USER_UPDATE_PROFILE_REQUEST, USER_UPDATE_PROFILE_SUCCES...
import React from "react"; import PropTypes from "prop-types"; import {citiesTypes, cityTypes} from "../../mocks/cities.proptypes"; const LocationsList = (props) => { const {cities, currentCity, clickHandler} = props; return <ul className="locations__list tabs__list"> {cities.map((city) => ( <li key={cit...
const express = require('express'); const mongoose = require('mongoose'); const router = express.Router(); const Product = require('../models/product') const Review = require('../models/review') mongoose.connect('mongodb://127.0.0.1:27017/customer', { useNewUrlParser: true }); mongoose.set('useFindAndModify', false); ...
/* * description: 基于原生Javascript封装cookie操作 * 本类实现像localStorage和sessionStorage一样的存储API, * 不同的是,这是基于HTTP cookie实现 * author: [email protected] */ function cookieStorage(maxage, path) { // 两个参数分别代表存储有效期和作用域 // 获取一个存储全部cookie信息的对象 var cookie = (function() { var cookie = {}; var all = document.cookie; if (all =...
import React from 'react' import { action as MetaAction, AppLoader } from 'edf-meta-engine' import config from './config' import { Map, fromJS } from 'immutable' import { TableOperate, Select, Button, Modal, Checkbox, ActiveLabelSelect, PrintOption } from 'edf-component' import moment from 'moment' import { FormDecorat...
class ItemsSearchResponse { constructor(items, categories, author) { this.items = items this.author = author this.categories = categories } } class ItemResponse { constructor(author, item) { this.author = author this.item = item } } class Price { constructor(currency, amount) { this....
// JavaScript Document $(function (){ //官网4 (function (){ var oBtnPrev = document.getElementById("btn_prev"); var oBtnNext = document.getElementById("btn_next"); var oUl = document.getElementById("ul1"); var aLi = oUl.children; var len = aLi.length; function rnd(n, m) { return parseInt(n + Math....
class ShopItem { constructor(id, price) { this.id = id; this.price = price; } } var shopItems = { bummleHat: new ShopItem(8, 100), strawHat: new ShopItem(2, 500), winterCap: new ShopItem(15, 1000), cowboyHat: new ShopItem(5, 1000), rangerHat: new ShopItem(4, 2000), explorerHat: new ShopItem(18, 2000), mark...
import React from 'react'; import MainPage from './MainPage'; import { connect } from 'react-redux'; import { setUsers, setSearchKey } from '../../Redux/MainGridReducer'; import Axios from 'axios'; class MainPageAPI extends React.Component { searchUsers = (searchKey) => { debugger; ...
$(document).ready(function () { $("#saveControl").click(function () { var sensor = $('#inputjson').val(); $.ajax({ async: true, crossDomain: true, url: 'http://{{HOST}}:8080/setup/control', ...
import { withPluginApi } from 'discourse/lib/plugin-api'; export default { name: 'bbf', initialize() { let timer = 0; let apiUser; let warningID = 0; let requestOut = false; let requestValid = false; function setLogoutTimer(eventType) { if(requestOut) { return; } if(requestValid) { return; ...
var ColorShader, __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = pa...
describe('Image label fixer', function () { // This should only be included for browsers (IE6/7) // that do not correctly treat labels correctly when // they contain an image. When the image is clicked, // the event should trigger a click on the label element, // which in turn should place focus on...
const HDWalletProvider = require('truffle-hdwallet-provider'); const Web3 = require('web3'); const {interface,bytecode} = require('./compile'); const provider = new HDWalletProvider( 'recycle diamond reward swift insect fault suit measure friend bundle dinosaur observe', 'https://ropsten.infura.io/v3/2ec2a1f3b47142...
import React from 'react' import {Switch, Redirect} from 'react-router' import {Public, Private} from './Layout' export default() => ( <Switch> <Public path="/auth"/> <Private path="/app"/> <Redirect to="/auth"/> </Switch> )
let savedArray = []; export function saveExpression() { //Grabs the Screen element in which to put the answers. let calcScreen = $('.screen')[0]; let a = calcScreen.innerHTML; //Checks if the answer includes either Error or Infinity in which cause it doesnt push it. if (a != "Error" && a != "Infinity" && a !...
import React, { useEffect,useState } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import {View, StatusBar, StyleSheet, TextInput, FlatList,Pressable} from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import CardHome from './CardMenuHome'; import {getAllMenus} from '../...
// alert("Hello world"); // let message = "Hello world"; // alert(message); // message = 'Hallo Welt'; // alert(message); const LINK_COLOR = '#FF0000' console.log("Link bitte in der Farbe", LINK_COLOR); let highscore = 523434; let fullname = "Jeffrey 'The Dude' Lebowski"; fullname = 'Jeffrey "The Dude" Lebowski'; //...
var Hexo = require('../hexo'); var pathFn = require('path'); var fs = require('hexo-fs'); var cwd = process.cwd(); var lastCwd = cwd; var byeWords = [ 'Good bye', 'See you again', 'Farewell', 'Have a nice day', 'Bye!', 'Catch you later' ]; // Find Hexo folder recursively function findConfigFile(){ // T...
// Require.js compliant bootstrap for whole application. See ../js/app/amicfg.js for further information // Require.js allows us to configure shortcut alias // There usage will become more apparent futher along in the tutorial. requirejs.config({ // script load statement for require.js implicitly defines ba...
/** * Created by campitos on 14/10/14. */
UploadFiles = (function () { var _submodule, submodule, resourceDropzone, arrRoles = [], sirenCode = ''; _submodule = { getFileType: function (file_path) { var file_ext = ''; if (file_path.lastIndexOf('.') > 0) { file_ext = file_path.substring(file_path.lastIndexOf('.') + ...
/* * @Description: 全局自定义指令 * @Author: 彭善智 * @LastEditors: 彭善智 * @Date: 2019-04-30 11:29:34 * @LastEditTime: 2019-04-30 11:51:11 */ //锚点跳转 Vue.directive('href',{ inserted : function(el,binding){ el.onclick = function(){ document.documentElement.scrollTop = $("#"+binding.value).offset()...
import React, { useState } from 'react' import { useDispatch } from 'react-redux' import { addPaymentMethod } from '../../actions/cart' import Checkout from '../../components/Checkout' const Payment = ({ history }) => { const [paymentMethod, setPaymentMethod] = useState('PayPal') const dispatch = useDispatch...
import { tableColumnsByDomain } from '../../../../../scripts/utils/table-utils' import Refund from '../../../../../models/ecommerse/refund' import Order from '../../../../../models/ecommerse/order' import RefundOrder from '../../../../../models/ecommerse/refundOrder' const width = App.options.styles.table.width const o...
const request = require('request') //Authenticates with the Control Room and returns the JWT const auth = (crURL, userName, apiKey, callback) => { const url = crURL + '/v1/authentication' request({ url : url, method :"POST", headers : { "content-type": "application/json"...
var js = { set:function($elem,obj){ $elem.show(); if(obj){ setWHB($elem,obj); }; $elem.on("click",function(){ }) } } function setWHB($elem,obj){ $elem.css(obj); }
import React, {Component,PropTypes} from 'react'; import {Link} from 'react-router'; import {connect} from 'react-redux'; import {logOut} from '../../actions/signupActions'; class BottomHeader extends React.Component { constructor(props){ super(props); this.state={ account:{} } ...
import {DefaultLogger as winston} from "@dracul/logger-backend"; import RBAC from "../rbac"; import RoleModel from "../models/RoleModel"; const rbacFactory = function () { return new Promise((resolve, reject) => { RoleModel.find({}).then(roles => { resolve(new RBAC(roles)) }).catch(err...
/// <reference name="MicrosoftAjax.js" /> function PBR_ApplicationInit() { Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(PBR_BeginRequest); Sys.WebForms.PageRequestManager.getInstance().add_endRequest(PBR_EndRequest); var PBR_oldText; var PBR_oldImage; } function PBR_BeginReques...
import React from "react"; import { useHistory } from "react-router-dom"; import styled from "styled-components"; import { FaLaptopCode } from "react-icons/fa"; import { Colors } from "../Global/Color"; export const Logo = () => { const history = useHistory(); return ( <Wrapper onClick={() => history.push("/"...
var xspacing = 16; var w; var theta = 0.0; var amplitude = 75.0; var period = 500.0; function setup() { createCanvas(1024, 768); } function draw() { background(0); lock_draw_line(); } /* * Modification of * https://github.com/mortehu/cantera-lock/../lock.c */ function lock_draw_line() { var i, j; var x...
$(document).ready(function () { function earzymodel(artist, title, album) { this.artist = ko.observable(artist); this.title = ko.observable(title); this.album = ko.observable(album); this.nosongs = ko.observable(0); this.mp3 = ko.observable(); this.url = ko.observabl...
$(".message a").click(function () { $("form").animate({ height: "toggle", opacity: "toggle" }, "slow") }) const FName = document.getElementById("fname") const LName = document.getElementById("lname") const Phone = document.getElementById("phone") const Address = document.getElementById("address...
$( "#començar" ).click(function() { $( ".block" ).animate({ left: 420, }, { duration: 3000, step: function( now, fx ){ $( ".block:gt(0)" ).css( "left", now ); } }); }); $( "#començar" ).click(function() { $( ".block" ).animate({ left: 600, }, { duration: 5000, step: function(...
var Db = require('mongodb').Db; var Connection = require('mongodb').Connection; var Server = require('mongodb').Server; var BSON = require('mongodb').BSON; var ObjectID = require('mongodb').ObjectID; EmployeeProvider = function(host, port) { this.db = new Db('node-mongo-contact', new Server(host, port, { safe: f...
import { Link } from "react-router-dom"; import React from "./topbar.css"; function Topbar() { const user=true; return ( <div className="top"> <div className="topLeft"> <i className="topIcon fab fa-facebook-square"></i> <i className="topIcon fab fa-twitter"></i> ...
import React, { Component } from 'react'; class Carregando extends Component { render() { return ( <div className="d-flex justify-content-center p-5"> <div className="spinner-border" role="status"> <span className="sr-only" /> </div> </div> // <div className="spinner-b...
import React, { Component } from 'react'; import {Text, View, StyleSheet,Picker,TextInput,Image,Button,ListView, TouchableOpacity,ScrollView,} from 'react-native'; import SearchPOC from './SearchPOC'; import axios from 'axios'; import { Container, Header, Content, Spinner } from 'native-base'; export default class Live...
import React, { useRef, useEffect, useState } from 'react'; import _, {debounce} from 'lodash'; import ImageWrapper from '../image-wrapper'; import InputField from '../input-field'; import searchIcon from '../../static/icons8-search-192.png'; const SearchBar = (props) => { const inputRef = useRef(null); const...
var animations = ['idle', 'crouch', 'walk', 'run', 'crouchWalk', 'die']; class Enemy { constructor(id, mesh, skeleton, weapon, shootingRangeUnits, accuracy, scene) { this.id = id; this.shootingRangeUnits = shootingRangeUnits; this.accuracy = accuracy; this.mesh = mesh; // thi...
import { init } from "./main.js"; window.onload = init;
//Question 3 //Suppose you have an array of 101 integers. This array is already sorted and all numbers in this array are consecutive. Each number only occurs once in the array except one number which occurs twice. Write a js code to find the repeated number. //e.g $arr = array(0,1,2,3,4,5,6,7,7,8,9,10...................
self.__precacheManifest = (self.__precacheManifest || []).concat([ { "revision": "a2ca2659137830ed3e9edd94ed43c488", "url": "/index.html" }, { "revision": "6de434bc5f8bf9889572", "url": "/static/css/main.f263bfb6.chunk.css" }, { "revision": "cc5b60f530ec9ef2959d", "url": "/static/js/2....
'use strict'; const VersionAttribute = require('../lib/versionAttribute'); const versionedSuperObject = { 1: { members: ['iron buddy', 'thorskaar', 'hulksta', 'aunt man', 'queen wasp'], 0: { members: ['iron buddy', 'thorskaar', 'hulksta', 'aunt man', 'queen wasp'], 1: { members: ['iron b...
"use strict"; /* global document */ var simpleDice = { sides: 6, roll: function () { var randomNumber = Math.floor(Math.random() * this.sides) + 1; return randomNumber; } }; var diceResult = document.getElementById('diceResult'); var diceButton = document.getElementById('diceButton'); di...
var mandrill = require('mandrill-api/mandrill'); var log = require('./log'), smtpConfig = require('./smtp.json'); var mandrillClient = new mandrill.Mandrill(smtpConfig.pass); module.exports = { send: function(toEmail, toName) { var message = { "html": "<p>Example HTML content</p>", ...
//Questão 01// var numeroum = 18; var numerodois = 15; if(numeroum>numerodois){ console.log("O valor maior é " + numeroum) } else{ console.log("O valor maior é " + numerodois) }
import "./App.css"; import React from "react"; import { getGoogleUid } from "./util"; import CertClient, {clientWithoutAccount} from "./client"; import Login from "./views/Login"; import { IssueComponent } from "./views/Issue"; import { SettingComponent } from "./views/Setting"; import { BrowserRouter as Router, Route,...
import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; import './Pagination.css'; /** * Component: Navbar * Props: dataHref */ class Pagination extends Component { render() { return( <ul className="pagination justify-content-center"> <li className="page-item"> ...
import React from "react"; import styled from "styled-components"; const FullRecipe = ({ recipe }) => { const closeRecipe = () => { recipe.handleActiveRecipe({}); }; return ( <Wrapper> <Container> <Button onClick={closeRecipe}> <i class="fas fa-times" /> </Button> ...
import SpecialForm from './specialForm'; export default SpecialForm;
export class FreshnessValueConverter { toView(value) { var age = (new Date() - value)/1000; if (Math.floor(age) > 10) return "red"; if (Math.floor(age) > 5) return "yellow"; return "white"; } }
import React from 'react'; import '../../../assets/styles.css' class First extends React.Component { render() { return ( <center> <h1>I <span id='atom'>⚛</span> React. <br/>An introduction.<br/><br/></h1> </center> ); } } ...
import React from "react"; import { Layout, PageHeader } from "antd"; import { Link } from "react-router-dom"; import Sidebar from "../../components/sidebar/Sidebar"; import SeeCard from "../../components/cards/card-see-all/SeeCard"; import './SeeAllSafe.scss' import ArrowLeft from "../../assets/icons/arrow-left.png"...
module.exports = { port: 5000, mongo: { url: 'mongodb://localhost:27017/rueppellii' } };
/** * First subscriber to btc price provider * Listen to both ipfs and query dispatcher */ async function bondDots(){ } async function subscribe(){ }
$(document).ready(function() { $("#nav-btn").click(function() { $("#nav-menu").fadeToggle(); }); $('#nav-menu li a').click(function() { $('#nav-menu').hide(); }); }); $(document).ready(function() { $("#back-top").hide(); $(function() ...
import * as React from "react"; import Hero from "../components/Hero"; import PageLayout from "../components/PageLayout"; import Footer from "../components/Footer"; import { Link, graphql, StaticQuery } from "gatsby"; function CategoryTitle({ children }) { return <h2 className="font-black text-gray-500 text-md">{chi...
/** * Created by Administrator on 2016/5/23. */ // JavaScript Document // Date: 2014-11-07 // Author: Agnes Xu i = 0; j = 0; count = 0; MM = 0; SS = 90; // 秒 90s MS = 0; totle = (MM+1)*900; d = 180*(MM+1); MM = "0" + MM; var gameTime = $("#qiangdanTime").val(); //count down var showTime = function(){ totle = ...
import React, { useState } from "react"; import a from "./../images/illustration-features-tab-1.svg"; import b from "./../images/illustration-features-tab-2.svg"; import c from "./../images/illustration-features-tab-3.svg"; import "./index.css"; const Feature = () => { const [list, setlist] = useState(0); const [aa...
'use strict'; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.createTable('Videos', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, key: { type: Sequelize.STRING(4096) }, ...
import React from "react"; import MessageCard from "../components/chat/MessageCard"; import { useSelector, useDispatch } from "react-redux"; import ChatInput from "../components/chat/ChatInput"; import { getChat } from "../components/chat/Actions"; import "../components/chat/Chat.css"; export default function ChatList...
$(document).ready(function() { var content = $("div.content"); var contentbox = $("div.contentbox"); var sidebar = $("div.sidebar"); resizeWindow(null); $(window).bind("resize", resizeWindow); function resizeWindow( e ) { var width = contentbox.outerWidth(); var offset = contentbox.offset()...
var timer; function startimer(speed){ timer = window.setInterval(changeNum,speed); } startimer(100); var images=document.getElementById('images'); console.log(images1); console.log(images2); console.log(images2.children[3]); var currentNo=0; function changeNum() { h2obj.textContent=currentNo; ...