text
stringlengths
7
3.69M
var mongoose = require('mongoose'); //require( __dirname + '/users.js'); /*var newPost_schema = mongoose.Schema({ User: {type: mongoose.Schema.ObjectId, ref: 'newPost'}, ChannelName: {type: String}, CustomizedURL: {type: String}, Private: Boolean }); mongoose.model('newPost',newPost_schema);*/
import React from 'react'; import styled from 'styled-components'; import { obterMes } from '../../lib/formatadorDeString'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faTrashAlt, faEdit } from '@fortawesome/free-solid-svg-icons' import { Link } from 'react-router-dom'; const List = style...
const timeFrom = document.getElementById("time_from"); const timeTo = document.getElementById("time_to"); const number = document.getElementById("number"); const hoursPerShift = document.getElementById("hours_per_shift"); function calculateShiftTimeTo() { const timeRangeInMinutes = number.value * (hoursPerShift.va...
// pages/notice-detail/notice-detail.js import { getNoticeDetail } from '../../api/api'; var WxParse = require('../wxparse/wxparse'); Page({ /** * 页面的初始数据 */ data: { detail:'' }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { const {id} = options this._getNoticeDetail(id) },...
import useLocalStorageState from "./useLocalStorageState" import uuid from 'uuid/dist/v4' export default initialTodos => { const [todos, setTodos] = useLocalStorageState("todos",initialTodos) return { todos, addTodo:newTodoText => { setTodos([...todos,{id:uuid(),task:newTodoText,com...
import * as types from 'kitsu/store/types'; import { Kitsu } from 'kitsu/config/api'; export const fetchGroupMemberships = () => async (dispatch, getState) => { dispatch({ type: types.FETCH_GROUP_MEMBERSHIPS }); try { const groups = await Kitsu.findAll('groupMembers', { include: 'group', filter: { ...
 function editFunction(row, store) { var currentPanel = 1; var navigate = function (panel, direction) { var layout = panel.getLayout(); var move = Ext.getCmp('move-next').text; if ('next' == direction) { //在這裡判斷料號是否存在 Ext.Ajax.request({ url: "/W...
var thumb107="TkSWZ9/CYkrrc5VP0dIfEmWzpWcz3FP6jmPx9rlbjigAvDzIbgJzza2DuUGJO6ELfhjc1KFIUqlRn/gKsUwjzdDI+u7b9DM4XSUJjXksWz75BgmIezs7U8NrvrjAeZM3aoDLh2QaGueSvvnvKy60DtVP2IpMfLmGxy4QsspuS15GGUmskpI2nEIkTzKIrx5FfQLgvR05DCeSipF0IRMtlJhxv1Y23hRERL6tT8xld0ZQVa/d6rc/T05mNT/a1jEHPCBUwoeuVqk9bZh5UqOS1tY9fL/ItP3U//jKqt7/mh0II7ZUW...
function reverseArray(arr) { // var end = arr.length-1; for(var index = 0; index < (arr.length/2); index++) { [arr[index], arr[arr.length-(index+1)]] = arr[arr.length-(index+1)], arr[index]]; // end--; } return arr } var test = reverseArray([0,1,2,3,4,5]); console.log(test) //or conso...
"use strict"; require("@babel/register"); const path = require("path"); const fs = require("fs"); const db = require("../src/db"); db.connect(); Promise.all( ["one", "two", "three", "four"].map(srv => db.StorageNode.create({ host: `storage_${srv}`, user: "data", private_key: String( f...
/** * Created by frank on 16/1/28. */ class BizError { constructor (error) { this.code = error.status; switch (error.status) { case 0: this.message = error.data; break; case 401: this.message = '认证授权失败,请登录'; break; case 403: case 405: this.mes...
/***************************************************************** ** Author: Asvin Goel, goel@telematique.eu ** ** A plugin allowing slides to use the full window size. ** ** Version: 1.0.0 ** ** License: MIT license (see LICENSE.md) ** ******************************************************************/ window.Reve...
import React from 'react'; import './Header.css' const Header = () => { return ( <div className='header'> <h1 className='heading'><strong>Online Courses</strong></h1> <nav> <a href="/course">Courses</a> <a href="/instructor">Teachers</a> ...
import { get as getSubtype } from './subtypes' export const name = 'list' export const uri = 'https://github.com/thomsbg/ottypes/list' export function create(initial) { return initial ? [...initial] : [] } export function normalize(delta) { let result = [] // rebuild by pushing every op, ensuring that consecu...
/*******************************简历管理后台接口******************************/ import {onPost,onGet} from "../main"; //简历信息数据 export const queryCurriculumVitaeData = params =>{ return onPost('oa/curriculumVitae/queryCurriculumVitaeData',params) } //简历信息数据 export const dropDown = params =>{ return onPost('oa/curriculum...
import React, { useState } from "react"; import "../styles/Form.css"; function App() { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); async function loginUser(event) { event.preventDefault(); const response = await fetch("/api/login", { method: "POST", ...
import React, { Component } from "react"; import { withRouter, Redirect } from "react-router-dom"; class Signup extends Component { state = { username: "", email: "", passwordOne: "", passwordTwo: "", isAuth: false }; handleChange = e => { this.setState({ [e.target.name]: e.target.va...
// Convenience wrapper around all other files: exports.profiles = require('./profiles'); exports.pages = require('./pages'); exports.isHelpedBys = require('./isHelpedBys');
import {INCREMENT,DECREMENT} from './action-types'; //定义actioncreator函数的对象 //增加的action export const increment=(number)=>({type:INCREMENT,number}); //减少的action export const decrement=(number)=>({type:DECREMENT,number}); export function incrementAsync(number) { return function (dispatch) { // 执行异步代码 se...
import React, { useState } from 'react'; import { Form, Card, Row } from 'react-bootstrap'; export default function Classificacoes(props) { const { field, form: { setFieldValue }, } = props; const [disabledEsteatoseCb, setDisabledEsteatoseCb] = useState(true); const [combo, setCombo] = useState(undefi...
import pThrottle from "p-throttle"; export const createFBStorageAPI = ( firebaseRef, interval = 2000 ) => { const setFBValue = pThrottle({ interval, limit: 1 })( ( val ) => firebaseRef.set( val ) ); return { deleteItem: setFBValue, getItem: () => firebaseRef.get().then( ...
$(document).ready(function(){ "use strict"; // let i = setInterval( () => { // if( $('#btn-sidebar-toggle').length === 1){ // clearInterval(i); // $('#btn-sidebar-toggle').pushMenu() // } // }, 100) let j = setInterval( () => { if( $('#left-side-m...
(function(){ var ListideasCtrl = function($scope, $location, $routeParams, $window, userServices) { console.log('Page loaded.'); $scope.categories = [ {name:'Health'}, {name:'Social'}, {name:'Economic'}, {name:'Finance'}, {name:'Personal'}, {name:'Business'}, {name:'Sc...
import React from 'react' export default function TableHeaderLabel(props) { const carAttributes = [ { label: "Year", name: "vehicle_year" }, { label: "Make", name: "make" }, { label: "Model", na...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function plus(num1, num2, ...others) { if (others.length > 0) { return plus(plus(num1, num2), others[0], ...others.slice(1)); } const baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2))); return (multi...
'use strict'; var utils = require('../utils/writer.js'); var Author = require('../service/AuthorService'); module.exports.authorsGET = function authorsGET (req, res, next) { let offset = req.swagger.params['offset'].value || 0; let limit = req.swagger.params['limit'].value || 20; Author.authorsGET(offset,limit)...
/* * @lc app=leetcode.cn id=556 lang=javascript * * [556] 下一个更大元素 III */ // @lc code=start /** * @param {number} n * @return {number} */ var nextGreaterElement = function (n) { let nArr = n.toString().split(''), i = nArr.length - 2; while (i >= 0 && nArr[i] >= nArr[i + 1]) { i--; } let ...
import React from 'react'; import UserDetailPage from '../../components/Users/UserDetail'; import { edit } from '../../services/users-api'; import { read } from '../../services/roles-api'; class UserDetail extends React.Component{ constructor(props) { super(props); this.state = { isL...
export const searchFilter = function myFunction() { const input = document.getElementById('search') const filter = input.value.toUpperCase() const ul = document.querySelector('.section-cards') const cardBlock = ul.getElementsByTagName('article') let i = 0 let cardContent = '' let txtValue = '' for (i =...
import React from "react"; export default function Pc() { return ( <div> <div> <div class="card" style={{ padding: "10px" }}> <div class="card-body"> <table className="table table-striped table-bordered border-dark"> <thead> <tr> ...
const ArticleVerif = require('../../../db/ArticleVerif'), User = require('../../../db/User'), format = require('date-format'), path = require('path'), fs = require('fs') module.exports = { editId: async (req, res) => { const dbArticleVerif = await ArticleVerif.findById(req.params.id) ...
/*eslint-disable*/ import {fromJS, Map} from 'immutable'; import d3 from 'd3'; import {WEB_SOCKET_INIT, WEB_SOCKET_DIFF, FRAMEWORK_BLUR, FRAMEWORK_TOGGLE, FRAMEWORK_FOCUS, SLAVE_TOGGLE} from '../../../src/actions'; import {clusterLayout} from '../../../src/reducers/cluster-layout'; import {ClusterLayout} from '../../....
import {ToastAndroid} from "react-native"; import fetchAPI from "./fetchAPI"; import loginFormData from "./loginFormData"; import Base64 from 'base-64' export default handleLogin= (uid, pwd) => { return new Promise((resolve) => { const hash = Base64.encode('bayer:bayer#123'); //parameters loginFor...
import React, { PropTypes } from 'react' import { Form, FormGroup, FormControl, ControlLabel, Button, } from 'react-bootstrap'; const AddTicker = ({ tickers, addTicker }) => ( <Form inline onSubmit={(event) => { event.preventDefault() const newTicker = event.target.elements[0].value.toUpperCase(); ...
//global variable declerations var currentCardObject; var divs = []; var allSets; var userDeckList = []; autocompleteSetup($("#myInput")[0]); getSets(); namedSearch() function replaceSymbols(newString){ //replaces all references to symbols with actual symbols in given string newString = newString.replace(/{W}/g, '<s...
module.exports = { base: "/", port: "3000", title: "Dynamic Datasource", description: "Dynamic Datasource", markdown: { lineNumbers: true, }, locales: { "/en/": { lang: "en-US", title: "dynamic-datasource", description: "A dynamic-datasource based on the springBoot", }, "...
import React from 'react' import styled from 'react-emotion'; import { createPortal } from 'react-dom'; import Polygon from './Polygon' import HoverPoint from './HoverPoint' import DistancePolygon from './DistancePolygon' import withMovement from './withMovement' import { move, scale, unproject, rotate90, topLeft } fro...
"use strict"; /* // Calculator project. // tscChart.ts. // // // Created by SunHong Lee on 2018. 7. 17. // // // */ let displayNum = "0"; //display될 숫자. let storedNum = ""; //연산을 위해 저장되는 숫자. let operation = 0; //연산 종류 let oldOperation = 0; //연산 종류 let calculationFinished = false; //계산과정을 마치는 표시. let ongoing = false...
// eslint-disable-next-line require-jsdoc export function handleError(err) { if (err && err.response && err.response.data && err.response.data.status ) { throw err.response.data.status } else { const error = { status_code: 500, message: 'No res...
import React from 'react'; import PropTypes from 'prop-types'; import styles from './Nav.css'; import { Link } from 'react-router-dom'; import classnames from 'classnames'; const Nav = props => { const navList = ['Lessons', 'Site', 'Author']; return ( <div> <div className={`${styles.container}`}> ...
let students = []; students.push({ 'name':'Jimbo', 'passing': false }); students.push({ 'name':'Jay', 'passing': true }); students.push({ 'name':'Bob', 'passing': true }); students.push({ 'name':'McLain', 'passing': false }); students.push...
//失败,因为详情页做了防爬虫处理,只能爬接口 用pathon const superagent = require('superagent'); //nodejs里一个非常方便的客户端请求代理模块 const cheerio = require('cheerio'); //Node.js 版的jQuery const async = require('async'); const fs = require('fs'); //fs操作IO const url = require('url'); const request =require('request'); const hupuUr...
(function(global, JQuery) { function parseHash() { var hash_string = global.location.hash.slice(1); var hash = {}; hash_string.split(/&/g).forEach(function(pair) { pair = pair.split('='); if (pair.length < 2) return; hash[pair[0]] = pair[1]; }); return hash; } function Vi...
/* eslint-disable no-console */ /* eslint-disable no-undef */ $(document).ready(function() { $.get("/api/user_data").then(function(data) { console.log(data); }); }); $(document).ready(function() { $.get("/api/gigs").then(function(data) { location.reload(); console.log(data); });...
import { Component } from 'react' import { Container, Row, Col, Image, Modal } from 'react-bootstrap' import { Link } from 'react-router-dom' import ProfileForm from './ProfileForm' import ProfileService from './../../../../services/profile.service' import Spinner from './../../../shared/Spinner/Spinner' import './Prof...
function slideSwitch() { var $active = $('#slideshow IMG.active'); if ( $active.length == 0 ) $active = $('#slideshow IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : $('#slideshow IMG:first'); $acti...
Function.prototype.bind2 = function(context){ console.log('---bind---') //返回被绑的函数 //新函数在运行的时候 this指向context var self = this; var args = Array.prototype.slice.call(arguments, 1) return function(){ var bindArgs = Array.prototype.slice.call(arguments) self.apply(context, args.concat(bindAr...
(function() { 'use strict'; describe('my app module', function() { beforeEach(module('myApp')); beforeEach(module('myApp.core')); it('should create a module myApp', function() { expect(angular.module('myApp')).toBeDefined(); }); it('should create a module myApp.core', function() ...
(function(){ $(document).ready(function(){ var video = document.querySelector("#videoElement"); navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia || navigator.oGetUserMedia; if (navigator.getUserMedia)...
/** * geocoders for different services * * should implement a function called geocode the gets * the address and call callback with a list of placemarks with lat, lon * (at least) */ cdb.geo.geocoder.YAHOO = { keys: { app_id: "nLQPTdTV34FB9L3yK2dCXydWXRv3ZKzyu_BdCSrmCBAM1HgGErsCyCbBbVP2Yg--" }, geo...
import { StyleSheet } from 'react-native' import { scale } from '@utils' import { Fonts, Colors } from '@constants' const styles = StyleSheet.create({ container: { flex: 1, }, listContainer: { flex: 1, }, headerWrapper: { marginTop: scale(28), paddingLeft: scale(10), paddingRight: scale(1...
const Category = require('../../models/category') const SubCategory = require('../../models/subCategory') const { transformCategory } = require('./merge') const Product = require('../../models/product') module.exports = { Query: { categories: async(_, args, context) => { console.log('categories: ') tr...
module.exports = { name: 'roles', path: '/roles', components: { page: require('./../../../Views/Cartalyst/Roles/Roles/Page'), header: require('./../../../Views/Cartalyst/Roles/Roles/Header') } }
function backToTop() { var x1 = x2 = x3 = 0; var y1 = y2 = y3 = 0; if (document.documentElement) { x1 = document.documentElement.scrollLeft || 0; y1 = document.documentElement.scrollTop || 0; } if (document.body) { x2 = document.body.scrollLeft || 0; y2 = document.b...
import React, { useEffect, useState } from 'react' export const Message = () => { const [state, setState] = useState({x:0, y:0}); const {x, y} = state; const mouseEvent = (e) => { const coords = { x: e.x, y: e.y } setState(coords); } useEffect(()...
'use strict' let money, time; let appData = { budget : money, timeData : time, expenses : {}, optionalExpenses : {}, income : [], savings : true, chooseExpenses: function (){ for (let i =0 ; i <2; i++){ let a = prompt ('Введите обязательную статью расходов в этом месяце')...
'use strict'; var $ = require('jquery'); var _ = require('underscore'); var Backbone = require('backbone'); var template = require('./overlays.html'); var AnimationController = require('../../modules/AnimationController'); var Overlays = Backbone.View.extend({ template: _.template(template()), initialize: funct...
import Users from "./Users"; import Post from ".//Post"; import AddPost from "./AddPost"; import Reviews from "./Reviews"; import Dashboard from "./Dashboard"; import EditPost from "./EditPost"; import PostPreview from "./PostPreview"; export { Users, Post, AddPost, Reviews, Dashboard, EditPost, PostPreview };
// Copyright (c) 2019 - 2020, FHNW, Switzerland. All rights reserved. // Licensed under MIT License, see LICENSE for details. import React, {useEffect, useState} from "react"; import {withRouter} from "react-router-dom"; import Container from "react-bootstrap/Container"; import "../../thirdparty/react-bootstrap-table2...
module.exports = { name: 'Administrator', description: 'Manage the user who administer the site', adminNav: [{ label: 'Administrators', url: '/admin/administrator' } ], bootstrap: function(app, properties, serviceLocator) { // Register the bundles models serviceLocator.register('administratorModel', ...
/* globals describe it */ require("should"); const RawSource = require("webpack-sources").RawSource; const BabelPlugin = require("../index"); const testFixtures = { "test1.js": new RawSource("const n = 1;") }; const testExpected = { "test1.js": new RawSource('"use strict";\n\nvar n = 1;') }; function test(options,...
import React from 'react'; import { ScrollView, KeyboardAvoidingView, SafeAreaView, StyleSheet, Text, TextInput, View, Image, TouchableOpacity, Keyboard, } from 'react-native'; import { MaterialIcons } from '@expo/vector-icons'; import NavigationHeader from '../../ui/NavigationHeader'; import { gene...
const AppError = require('../../../../../shared/errors/AppError'); const usersRepository = require('../../repositories/UsersRepository') class EnableUserService { constructor() { } async execute(user) { const foundUser = await usersRepository.searchByUser(user) if (!foundUser) { ...
import React from 'react'; import Footer from '../components/Footer/Footer'; import Header from '../components/Header/Header'; import "./HomeLayout.css"; export default ({ children }) => ( <div className="home-layout"> <Header /> { children } <Footer /> </div> )
require("dotenv/config") require("./db") const express = require("express") const app = express() require("./config")(app) require("./config/cors.config")(app) require("./config/session.config")(app) require("./routes")(app) app.use((req, res) => res.sendFile(__dirname + "/public/index.html")); module.exp...
$("#player-profile").click(function(){ $("#profile-wrapper").animate({ display:block; }, 1500 ); });
import {onGet,onPost} from "../main"; // 查询合同模板列表 export const queryTemplateList = params=>{ return onPost('deal/queryContractList',params) } // 查询合同模板详细 export const queryDetailed = params=>{ return onPost('deal/queryDetailed',params) } // 添加合同模板 export const addTemplate = params=>{ return onPost('deal/addTem...
/* Cet dépôt est une traduction de 33-js-concepts par Leonardo Madonaldo. Il a été créé dans le but d'aider les développeurs à maîtriser les concepts fondamentaux de JavaScript, et fonctionne comme un guide pour continuer à apprendre. Il est basé sur un article écrit par Stephen Curtis. */
$(function() { const sideContent = $('.side-content'); // サイドバー全体 const teamTalkBtn = $('.group-info__talk-room__team-talk'); // チームトークボタン(サイドバー) const botTalkBtn = $('.group-info__talk-room__bot-talk'); // botトークボタン(サイドバー) const codeListBtn = $('.group-...
export function arrDisposable(state = []) { return [...state]; } export function objDisposable(state = {}) { return state; } export function toggleNewComponentModal(state = false, action) { const { type } = action; if (type === 'openNewComponentModal') { return true; } if (type === 'cl...
import React from 'react'; import {View, Image, StatusBar, Dimensions, Text} from 'react-native'; import Swiper from 'react-native-swiper'; const {width, height} = Dimensions.get('window'); const styles = { wrapper: { // backgroundColor: '#f00' }, slide: { flex: 1, backgroundColor: 'transparent', ...
var mongodb = require('./db.js'); function User(user){ this.name = user.name; this.password = user.password; this.email = user.email; } module.exports = User; User.prototype.save = function( callback ){ var user = { name : this.name, password : this.password, email : this.email }; mongodb.o...
/* Copyright 2016-2018 Stratumn SAS. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable l...
//business logic function order(name, size, crust, topping, number, total) { this.name = name; this.size = size; this.crust = crust; this.topping = topping; this.number = number; this.total = total; } $(document).ready(function () { $("#sec").click(function () { $(".other-order").append('<div...
import "./main.scss"; import Index from './components/Index'; import Blog from './components/Blog'; import Contact from './components/Contact'; import Project from './components/Project'; import NavbarComp from './components/Navbar'; import { BrowserRouter as Router, Switch, Route, Link } from "react-router-d...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const InvitationToken_1 = require("./InvitationToken"); const DataHelper_1 = require("../../../helpers/DataHelper"); class Invitation { constructor(model) { if (!model) return; this._id = DataHelper_1.default.ha...
const Koa = require('koa'); const favicon = require('koa-favicon'); const session = require('koa-session'); const static = require('koa-static'); const morgan = require('koa-morgan'); const route = require('koa-route'); const mount = require('koa-mount'); const Grant = require('grant-koa'); const proxy = require('@es-g...
/* * Module de création du menu de filtres + ses boutons */ function createBtn(categorie) { let btn = document.createElement("button"); btn.setAttribute('type', 'button'); btn.setAttribute('class', 'filter-btn'); btn.setAttribute('value', categorie.id); btn.innerText = categorie.name; return...
'use strict'; const inquirer = require('inquirer'); /** editionSetup {Array} - Inquirer question logic for first question regarding editions */ const editionSetup = [ { type: 'input', name: 'project_root', message: 'Please specify a directory for your Pattern Lab project.', default: () => './', }, ...
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class singleToneDataManager{ static sharedInstance = null; _userID = ""; _DictDetailsArray=[]; _HomeArray=[]; _TeamsArray=[]; _ReboundsArray=[]; ServiceArray=[ {name:"...
//03.Write a script that finds the maximal sequence of equal elements in an array. 'use strict'; var numbers = [2, 1, 1, 2, 3, 3, 2, 2, 2, 1], sequenceLength = 1, maxSequenceLength = 0, maxSequenceIndex = 0, i, length; for (i = 0, length = numbers.length; i < length; i += 1) { if (numbers[i] === n...
import React, { Component } from "react"; import MeetingList from "./MeetingList"; import '../css/HaveAMeeting.css'; class HaveAMeeting extends Component { constructor(props) { super(props); this.state = { meetingName: "" }; this.handleChange = this.handleChange.bind(this); this.handleSubm...
import React, { useEffect, useState } from "react"; import { Layout, Row, Divider, Card, Col, Table, Tag, Radio, Descriptions, Tabs, Typography } from "antd"; import axios from "axios"; import echarts from "echarts"; import { useParams } from "react-router-dom"; import styled from "styled-components"; import dayjs from...
function onLoad(){ //Don't make any variables read only if user has the admin role if (g_user.hasRole('admin')) { return; } else try{ //if the user doesn't have the admin role, set all variables on the form to read-only //this function is not documented g_form.setVariablesReadOnly(true); } catch(e){ ...
const Reducer = (state, action) =>{ switch(action.type){ case 'teste@ADD': return [...state, action.item2]; case 'teste@CHECK': return state.map(item =>{ if(item.id === action.id){ return {...item,check: !item.check} }els...
import { REGISTER_SUCCESS, REGISTER_FAILD, LOGIN_SUCCESS, LOGIN_FAILD, LOAD_User_SUCCESS, LOAD_User_FAILD, LOGOUT, LOAD_ALL_USERS, LOAD_ALL_USERS_FAIL, EDIT_FAILD, ONE_USER, ONE_USER_FAIL, EDIT_BY_ID_SUCCESS, EDIT_BY_ID_FAIL, EDIT_ONLY_ID_SUCCESS, } from "./type"; import axios from "axios"...
$(document).ready(function(){ $("#hide").click(function(){ $("#message").toggle(1000); if($(this).text() === 'Hide'){ $(this).text('Show'); } else { $(this).text('Hide'); } }); });
$(function () { $('.ui-datepicker-time').val(""); complete(); totalPercent(); }) var obj = { shyp:[0,0,0,0,0,0,0], ylyp:[0,0,0,0,0,0,0], xxyp:[0,0,0,0,0,0,0] } //轮播开始 $('.faceImg').html(''); for(var i = 0;i < 5;i++){ var newDiv = '<div class="faceImgDiv"><span><img src="index/img/demo_'+ (...
app.service('BusService', function($http){ this.getBusses = function(sid, callBackOk, callBackNotOk){ //var searchUrl = 'https://api.myjson.com/bins/po22'; // var searchUrl = 'https://data.gov.ie/api/3/action/package_list'; var searchUrl = 'https://data.dublinked.ie/cgi-bin/rtpi/realtimebusinforma...
import React from 'react' const Hidden = ({hide, children}) => hide ? <div></div> : children Hidden.propTypes = { hide: React.PropTypes.bool.isRequired } export default Hidden
/* 🤖 this file was generated by svg-to-ts*/ export const EOSIconsTune = { name: 'tune', data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"/></svg>` };
import { StatusBar } from 'expo-status-bar'; import React, { useState } from 'react'; import { StyleSheet, Text, View, Alert } from 'react-native'; import { Button } from 'react-native-elements'; import AppInput from '../../components/input'; import { addTopic } from '../../redux/actions/forum'; import { useDispatch, u...
function capitalize(string) { let arr = string.split(" "); let newArr = []; for(let i =0; i < arr.length; i++){ let word = arr[i]; newArr.push(word.charAt(0).toUpperCase() + word.substring(1)); } return newArr.join(" "); } module.exports = capitalize;
function clickpic(e) { var x = e.offsetX; var y = e.offsetY; console.log(x,y); if (e.target.getAttribute("id")=="ball_0"){ e.target.setAttribute("class", "ball_1"); e.target.setAttribute("id", "ball_1"); } else if(e.target.getAttribute("id")=="ball_1"){ localStora...
import React, { useEffect, useState } from "react"; import axios from "axios"; import { connect } from "react-redux"; import { updateUser } from "../redux/userReducer"; import { getAllProduct } from "../redux/productReducer"; import { addToCart } from "../redux/cartReducer"; const ProductItem = (props) => { const [t...
module.exports = { name: 'Kaherwa Taal', measures: [ [ { bol: 'dha', accent: 'x' } , { bol: 'ge' } , { bol: 'na' } , { bol: 'tin' } ] , [ { bol: 'na', accent: '0' } , { bol: 'ke' } , { bol: 'dhin' } , { bol: 'na' } ] ] } // laggi 1 // ------- // // x // dha ge dha tee dha ge tin n...
//Standard Libraries var wifi=require("ESP8266WiFi_0v25"); var http=require("http"); //NuralJS Libraries var lcdmodule=require("https://github.com/JerryCFox/nuraljs_microdriver_lcd/blob/master/nuraljs_microdriver_lcd.js"); var wifimodule=require("https://github.com/JerryCFox/nuraljs_microdriver_esp01/blob/master/nural...
export default 'exports from script-2.js'
import 'babel-core/polyfill'; import React from 'react' import FlickrBoxxApp from 'containers/FlickrBoxxApp' import thunk from 'redux-thunk' import { createStore, applyMiddleware, combineReducers } from 'redux' import { Provider } from 'react-redux' import * as reducers from 'reducers' const reducer = combineReducers(...
// 返回用户收藏词条 var url = require('url'); var util = require('./util'); module.exports = function (req, res) { urlParser = url.parse(req.url, true); var mySessionKey = urlParser.query.mySessionKey; console.log("Favorite..."); var state = checkUserLoginState(mySessionKey); if(state == "S") { var user...