text
stringlengths
7
3.69M
function footnote(n) { let a = document.getElementsByClassName('footnote-button')[n - 1]; let note = document.getElementsByClassName('footnote')[n - 1] if (a.innerHTML == '+') { note.classList.add('footnote-shown'); note.classList.remove('footnote-hidden'); a.innerHTML = '-'; } e...
class Chest extends GameObject{ constructor(){ super("chest"); this.isInteractive = true; this.isWalkable = false; this.isPickable = false; } interact(map){ if (this.isInteractive) { this.isInteractive = false; this.isWalkable = true; this.isVisible = false; map.pla...
var searchData= [ ['paper',['Paper',['../classsrc_1_1_paper.html',1,'src.Paper'],['../classsrc_1_1_paper.html#a6ebb6ad460906f13f1d5302f26ca895d',1,'src.Paper.Paper()']]] ];
/*jslint browser: true, undef: true, white: false, laxbreak: true *//*global Ext, MyRetirement, MyRetirementRemote*/ Ext.define('MyRetirement.model.setup.SetupInfo', { extend: 'Ext.data.Model' ,requires: [ 'MyRetirement.proxy.Direct' ,'Jarvus.validation.Number' ,'MyRetirement.validation.Enumeration' ] ,pr...
(function() { var moduleId = "faceCtrl"; angular.module('FaceApp').controller(moduleId, [faceCtrl]); function faceCtrl() { var vm = this; vm.items = []; vm.calcK = calcK; activate(); function activate() { vm.items = [{ date: new Date(201...
const chai = require('chai'); const expect = chai.expect; const {defineSupportCode} = require('cucumber'); const ConfigLoader = require('../lib/config-loader'); const Context = require('../lib/context'); const configLoader = new ConfigLoader({fs: require('fs')}); defineSupportCode(({Given, When, Then}) => { le...
import axios from 'axios'; const getWorkout = (workoutId) => { return axios.get("/workout/" + workoutId); } export default getWorkout;
'use strict'; angular.module('app') .directive('onEnter', function() { return function(scope, element, attrs) { element.on("keyup keypress", function(event) { if(event.which === 13) { if (!scope.$$phase) { scope.$apply(function(){ ...
/* global ODSA */ (function ($) { "use strict"; // AV variables var insertArray, tree, stack, stackLabels, insertSize = 10, // Load the configurations created by odsaAV.js config = ODSA.UTILS.loadConfig({"av_container": "jsavcontainer"}), interpret = config.interpreter, ...
import '@vueneue/vue-cli-plugin-ssr/lib/core/client/entry';
function Wzzl() { this.container = $("#container"); // 总容器 this.title = $("#app-navigation .open-tags"); // 手机下导航栏title this.init(); } Wzzl.prototype.init = function() { this.container.empty(); this.bind(); this.showPage(); } Wzzl.prototype.bind = function() { var self = this; window.addEventLi...
import Leaflet, { marker } from 'leaflet'; import { createMachine, State, actions, assign, send, sendParent, interpret, spawn } from 'xstate'; import { fetchFromLocalStorage } from '../utils/storage'; import { LOG_STORAGE_KEY } from './log.machine'; const MAPBOX_API_TOKEN = 'pk.eyJ1IjoiamFjay1oYXJkaW5...
import ButtonWrapper from "./Button.style"; import buttonHoverShapeBlack from '../../assets/button-hover-shape.svg'; import buttonHoverShapeWhite from '../../assets/hov_shape_s.svg'; const Button = ({ children, ...props }) => { return ( <ButtonWrapper type="submit" className="riph-btn" {...props}> {childr...
import Vue from 'vue'; import axios from 'axios'; Vue.prototype.$axios = axios; let localUrl = 'http://localhost:2322/'; Vue.prototype.$localUrl = localUrl; //判断对象是否为空 Vue.prototype.isOwnEmpty = function(obj) { for(var name in obj) { if(obj.hasOwnProperty(name)) { return false; } } return true; } //判断字符串是否为空...
import Vue from 'vue' import Cookies from 'js-cookie' import i18n from '@/utils/i18n' const app = { state: { sidebar: { opened: !+Cookies.get('sidebarStatus') }, lang: i18n.locale, searchParam: {} }, mutations: { TOGGLE_SIDEBAR: state => { if (state.sidebar.opened) { Cooki...
const express = require("express"); const path = require("path"); const apiRouter = require("./routes/api"); const middlewareRouter = require("./routes/middlewares"); const errMiddlewareRouter = require("./routes/errMiddleware"); const { MONGODB_URL, PORT } = require('./config.json'); const { API } = require('./route.c...
// pages/customer/customer.js const app = getApp() const http = require('../../utils/http.js') // 引入 const dialog = require('../../utils/dialog.js') // 引入 Page({ /** * 页面的初始数据 */ data: { page: 1, size: 20, customerList: [], customerCondition: '' }, /** * 生命周期函数--监听页面加载 */ onLoa...
const pagination = (config, page) => { return { ...config, params: { ...config.params, page, }, }; }; const unique = (objects, comparedPropriety) => { return objects.reduce( (unique, item) => unique.find((uniqueItem) => uniqueItem[comparedPropriety] === item[comparedPropriety]) ...
import React, { useState } from 'react'; import { Link } from 'react-router-dom'; export const TextCosts = (props) => { const [checked, setChecked] = useState( props.checkedToPrint[props.printName] === true, ); const handleChange = (event) => { const value = event.target.checked; setChecked(value); ...
import React, {useState, useEffect, useRef} from 'react' import './App.css'; const logo = "logo" const Burger = ({ open, setOpen, ...props }) => { return ( <button aria-label="Toggle menu" aria-expanded={open} onClick={() => setOpen(!open)} {...props}> <span /> <span /> <span /> </button...
document.addEventListener("DOMContentLoaded", () => { var content = document.getElementById("content"); var numberofmessage = 0; var lastSender; var disconnect = 0; var myname = "0"; while(myname.length < 3){ myname =...
//basics of quicksort algorithm. function processData(input) { 'use strict'; const size = input.split('\n'); const arr = size.pop().split(' ').map(Number); let left = []; let equal = []; let right = []; let p = arr[0]; let i = 0; while(i<size){ if(p > arr[i]){ ...
const Sequelize = require('sequelize'); const sequelize = new Sequelize('database', { host: 'localhost', dialect: 'sqlite', storage: 'database/database.sqlite' }); sequelize.authenticate() .then(() => { console.log('Connection to database has been established'); }) .catch((err) => { console.error('Unable to ...
/** * This view controller is used to controll the position and sizes of the floating view * that is the "parkedActivities" view on the left */ // ParkedActivitiesViewController constructor var ParkedActivitiesViewController = function (view, model) { $(window).resize(function () { if (view.floatingView.hasClas...
var title = $('h1:not(.main-title)'); title.addClass('my-jquery-class')
const fs = require("fs"); const fsp = require("fs-extra"); const Lame = require("node-lame").Lame; const helpers = require("./helpers/helpers"); exports.Encode = async (audioFileBuffer) => { try { const encoder = new Lame({ output: "buffer", bitrate: 128, }).setBuffer(audioFileBuffer); awa...
import React from "react"; import { HeroContainer, HeroContent, HeroH1, HeroLeft, HeroRight, HeroWrapper, HeroP, HeroPBold, PhoneWrapper, PhoneContainer, PhoneDiv, PhoneVideo, HeroContentRow, Column1, Column2, } from "./HeroElements"; import Video from "../../assets/videos/herovideo.mp4"; ...
const express = require("express"); const router = express.Router(); const Products = require("../../models/Products"); router.get( "/product/:id", async (req, res) => { try { let data = await Products.findOne({ _id: req.params.id }); if (data) { return res.json(data); } else { ...
import fetch from 'isomorphic-fetch' export const REQUEST_FAVORITES = 'REQUEST_FAVORITES' export const RECEIVE_FAVORITES = 'RECEIVE_FAVORITES' export const SONOS_API = 'http://xbmcs-mac-mini.local:5005' function requestFavorites() { return { type: REQUEST_FAVORITES } } function receiveFavorites(json) { return {...
const logout = document.getElementById('logout') const cont = document.getElementById('cont') const zero = document.getElementById('zero') const one = document.getElementById('one') const two = document.getElementById('twosome') var arr = [] const action = (id) => { const result = arr.filter(val => { if(v...
../../js/flotr.debug-0.2.0-alpha.js
module.exports = function(DocumentApiService, HttpService) { var self = this self.getUsers = function() { var request = 'manage_users?list=all' HttpService.postRequest(request, {}) .then( function (response) { self.userList = response.data['lis...
'use strict'; const routes = require('../../constants/routes.json'); const onLogout = (bindActions) => { const { logout, navigate } = bindActions; return () => Promise .resolve(logout()) .then(() => navigate(routes.login)); }; module.exports = { onLogout };
import mongoose from 'mongoose'; const Schema = mongoose.Schema; /** * @swagger * definition: * User: * properties: * name: * type: string * pnl: * type: string * volume: * type: string * position: * type: string */ const AccountStateSchema =...
import React, { useEffect, useState } from 'react'; import { useDispatch } from 'react-redux'; import { filterPosts, getPosts } from '../../actions/posts'; import { Grid, Grow, Typography } from '@material-ui/core'; import TextField from '@material-ui/core/TextField'; import Posts from '../Posts/Posts'; const Search =...
#!/usr/bin/env node // Dependency: This script requires Nodejs. // Install Node: https://nodejs.org/en/download/ // Required parameters: // @raycast.schemaVersion 1 // @raycast.title Convert Twitter to Nitter // @raycast.mode silent // Optional parameters: // @raycast.icon 🐔 // Documentation: // @raycast.descriptio...
/* eslint-disable no-console */ import 'tw-elements'; import 'jquery'; import $ from 'jquery'; import '../css/fonts.css'; import '../css/tailwind.css'; import '../css/popup.css'; import { removeClassStartsWith, arrayToConfigMap } from './lib/util'; import { FONT_CLASS_PREFIX } from './lib/consts'; /* * Send form to...
/** * Created by chrismorgan on 5/26/15. */ septageLogger.service('spreadSiteService', ['$http', function($http){ this.getSpreadSite = function(_id){ //console.log('userService::getUser', username); return $http.get('/spreadsites/'+_id) .success(function(data){ //consol...
const initialState = { firstName: '', lastName: '', age : undefined, random: '', guid: '', fetching: false, groupSpin : false }; export default initialState;
var nsh = require('node-syntaxhighlighter') , fs = require('fs') , path = require('path') , log = require('npmlog') , common = require('./common') , mkdirp = require('mkdirp') , styles = nsh.getStyles() ; module.exports = { // [Path folder, String ext,] Functi...
import fromEvent from '../signals/sources/fromEvent' import hash from '../processes/hash' const hashChange = hash(fromEvent(window, 'hashchange').start(true)) const naiveRouter = hash(hashChange) export default naiveRouter
const express = require('express'); const router = express.Router(); const bcrypt = require('bcrypt'); //Usersession model const User = require('../../../models/User') router.post('/',(req, res, next)=>{ User.find({Username: req.body.Username}) .exec() .then(user =>{ if(user.length <1){ ...
/* function $(id) { return document.getElementById(id); } */ /* var Base = { getId : function (id) { return document.getElementById(id); }, getName : function (name) { return document.getElementsByName(name); }, getTagName : function (tag) { return document.getElementsByTagName(tag); } }; */ //前台...
import React from "react"; import styled from "styled-components/macro"; import HeroSrc from "../images/bullseye-logo.jpg"; import TeenyHeart from "../images/TeenyHeart.svg"; import DropDown from "../images/DropDown.png"; import TeenyBurgerComponent from "../TeenyBurgerComponent"; import { Spring, config } from "react...
const REGEX = /(^|[^-])((linear)|(radial))-gradient/; export default { 'background': REGEX, 'background-image': REGEX, 'border-image': REGEX, 'border-image-source': REGEX, 'content': REGEX, 'cursor': REGEX, 'list-style': REGEX, 'list-style-image': REGEX, };
'use strict'; /** * @ngdoc service * @name sheetApp.ApiLocation * @description * # ApiLocation * Constant in the sheetApp. */ angular.module('sheetApp') .constant('ApiLocation', 'http://jasperras.nl:8080/planeswalkers-api');
moduleSearchIndex = [{"l":"gameoflife.core"}]
var loseState = function(game){}; loseState.prototype = { preload: function() { Sedgewick(1000,'wingame','win',silencesedge); }, create: function() { var yay = game.add.text(400,550,"You Lost !!!",{font: "100px Arial", fill: "#ff4400",align: "center",wrap: true}); yay.anchor.set(0.5); var optionexitbutt...
let points = [[50, 450], [110, 50], [250, 250], [400, 450], [450, 100]]; const colors = ["#ff0000", "#ffff00", "#00ff00", "#00ffff", "#0000ff", "#ff00ff"]; function getColor(i, total) { if (document.getElementById('animate').checked) { return `hsl(${i / total * 360}, 100%, 50%)`; } else { retur...
const router = require('koa-router')() const decorator = require('koa-swagger-decorator') const mongoose = require('mongoose') const utils = require('../utils/index.js') const commonClass = require('./common.js') const ApiError = require('../utils/error/apiError') const ApiErrorNames = require('../utils/error/apiError...
// Importing the class const express = require('express'); const path = require('path'); const http = require('http'); // Variables Declaration const port = process.env.PORT || 3000; const publicPath = path.join(__dirname, '../public'); var app = express(); // Rendering from Public Folder app.use(express.static(publ...
angular.module('myApp') .controller('getSongsCtrl', function($scope, $http, $timeout, $mdDialog, $q) { 'use strict'; $scope.loadComplete = false; $scope.items = []; $scope.logItem = function(item) { $scope.items.push(item); console.log(item.name, 'was selected'); }; $http({ ...
import React from 'react' import { useSelector } from 'react-redux' import {ProductComments,ProductInfo} from '..' import {Switch,Route,Link,useRouteMatch, useLocation} from "react-router-dom"; import './index.scss' const ProductPage = ({params}) => { let { path, url } = useRouteMatch(); let { pathname }=use...
import React from 'react' import Formsy from 'formsy-react' import ReactMixin from 'react-mixin' export class MyInput extends React.Component { constructor(props) { super(props) this.state = {} } change(e) { console.log(this) console.log(e.target.value) console.log(e.currentTarget.value) ...
import React from 'react' import { makeStyles } from '@material-ui/core/styles' import {Grid, Paper, Typography} from '@material-ui/core' const useStyles = makeStyles(theme => ({ root: { flexGrow: 1, background: '#fff' }, conatiner: { margin: 'auto', maxWidth: 1248, boxShadow: 'none', bac...
/* Kehinde Orogbangba pie.js javascript file that defines d3 pie chart */ var width = 400, height = 400, radius = 200, colors = d3.scale.category20c(); /* temporary pieData to display */ /* var piedata = [ { label: "Barot", value: 10 },{ label: "Gerad", value: 30 },{ label: ...
var baseDir= require('./basedir'); var tourSort = require(baseDir + 'tourSort'); var assert = require('chai').assert; var expect = require('chai').expect; function regex(item, base){ return parseInt(item.match(RegExp(base+"(\\d+)"))[1]); } describe('tourSort', function(){ it("regex returns the number after ...
var tedious = require('tedious').Connection; module.exports = function(config) { var mssql = config.mssql; var db = new tedious({ domain: mssql.dbDomain, userName: mssql.dbUser, password: mssql.dbPass, server: mssql.dbHost, options: { database: mssql.db, encrypt: true } }); ...
/** * Created by jun90610@gmail.com on 2015/4/14. */ window.onload=function(){ };
K = require('kefir'); _ = require('lodash'); const sec = 1000; K.interval(sec, 'Event: 42'); K.interval(sec, 'Event: 42') .log(); //oh god make it stop const eternity = K.interval(sec, 'Event: 42'); eternity.log(); eternity.offLog(); K.sequentially(sec, [0, 1, 2]) .log(); K.sequentially(sec, _.times(3)) .l...
import React from 'react'; import { Link } from 'react-router-dom'; function Footer(props) { return ( <div className="footer footer-setup"> <div className="container"> <div className="row justify-content-center"> <div className="col-4 offset-1 col-sm-2"> ...
import { createSelector } from "reselect"; import { getCurrentRestaurant } from "./RestaurantSelectors"; export const getReviews = createSelector( [getCurrentRestaurant], currentRestaurant => currentRestaurant && currentRestaurant.reviews );
/** * @param {TreeNode} root * @return {boolean} */ const isValidBST = (root) => { return isValidBSTInternal(root, -99999, 99999); }; function isValidBSTInternal(node, min, max) { if (node === null || node.val === null) { return true; } if (node.val > max || node.val < min) { return false; } r...
import React from "react" import Container from "./Components/Container/Container"; import PlayerCard from "./Components/playercard/PlayerCard"; import Console from "./Components/Console/Console"; import RandomNumber from "./Hooks/RandomNumber"; class App extends React.Component{ state = JSON.parse(localStorage.ge...
export default { getSelectedInstrumentId: (state, getters) => { return state.selectSymbol }, getSelectedShowInstrumentId: (state, getters) => { return state.selectShowSymbol }, }
module.exports = { appenders: { console: { type: 'console' }, app: { type: 'dateFile', filename: `log/vue-ssr-admin`, pattern: '-yyyy-MM-dd.log', alwaysIncludePattern: true, backups: 5, maxLogSize: 10485760, compress: true } }, categories: { defa...
let inputSalary = document.getElementById('salary'); let inputZip = document.getElementById('zipCode'); let btn = document.getElementById('btn'); let resultShwoing = document.getElementById('result'); const calculImpot = () => { let regionArray = [...inputZip.value]; if (regionArray[0] === "5" && regionArray[1]...
import React, { Fragment } from "react"; const Person = ({ person, deletePerson }) => { const { name, number } = person; return ( <Fragment> <p key={name}> {name} {number} <button onClick={deletePerson}>delete</button> </p> </Fragment> ); }; export default Person;
var call =require('/home/ubuntu/module/blockchain/Hyperledger/test2.js'); call.parse();
/* API de Google Maps que cargue desde la máquina cliente un archivo en formato GeoJSON con la situación del inicio y de los hitos de las rutas turísticas construidas en la práctica de XML*/ //AIzaSyC8aUp4J8B-MOmk6mg4A8cSsbE3qzEpB1g //Problemas de accesibilidad en el marco del mapa dinámico de Google Maps class...
'use strict'; var Utils = require('./utils'); var Popup = require('./popup'); var Router = require('./router'); var constants = require('./constants'); var weeklyChart = require('./weeklychart'); var $ = new Utils(), popup = new Popup(), weeklychart = new weeklyChart(), r = new Router(), deviceAgent =...
import React from 'react'; import { Link } from "react-router-dom"; import { withRouter } from "react-router"; import './eventDetailPage.css'; import ImageGallery from 'react-image-gallery'; import ReactQuill from 'react-quill'; import "react-quill/dist/quill.bubble.css"; import { BsChevronDown } from 'react-icons/bs'...
// @flow import React from 'react'; import {ScrollView} from 'react-native'; import CommunityPartners from './CommunityPartners'; import MediaPartners from './MediaPartners'; import AdditionalSponsors from './AdditionalSponsors'; import MainSponsors from './MainSponsors'; import {themeColors} from '../../constants/c...
console.log('utils.js file') const name='ayush' module.exports=name const add=function(){ return a+b }
import Attribute from './attribute' import magic from '@kuba/magic' import reflow from './reflow' import render from './render' import repaint from './repaint' class Attributes { #attrList #target constructor (attrList, target) { this.#attrList = attrList this.#target = target } [reflow.add] (nAttr...
angular.module('ngApp.uploadShipment').controller('UploadShipmentController', function ($scope, $rootScope, toaster, $translate, Upload, uiGridConstants, DownloadExcelService, CustomerService, config, $state, SessionService, UploadShipmentService, $uibModal, $http, $window, AppSpinner, ModalService, $interval, $timeou...
var sys = require('util'); var cp = require('child_process'); var os = require('os'); exports.ping = function ping(address, callback) { // Determine the host OS; set up ping arguments and vars accordingly. var platform = os.platform(); var process = null; var result_line = 1; // Default for POSIX-bas...
// pages/detail/detail.js var network = require("../../utils/network.js") var common = require("../../utils/common.js") var app = getApp() Page({ /** * 页面的初始数据 */ data: { showModalStatus: false, //是否显示 // gg_id: 0, //规格ID // gg_txt: '', //规格文本 // gg_price: 0, //规格价格 // guigeList: [{ /...
module.exports = require('./lib/beyo');
const express = require('express'); const app = express(); const bodyParser = require('body-parser'); const Article = require('./db').Article; /*provides an asynchronous function that downloads a URL and turns the HTML into a simplified representation*/ const read = require('node-readability'); app.set('port', proces...
import Vue from 'vue' import Router from 'vue-router' import Home from "@/pages/users/home/home" import Detail from "@/pages/users/detail/detail" import Login from "@/pages/users/login/login" import Register from "@/pages/users/register/register" import Index from '@/pages/users/home/index' import Classify from '@/page...
/** * Ajax get请求 * @param uri * @param callbackFunction 回调的函数,注意不带括号 * @param errorFunction 错误处理的函数,注意不带括号 */ function tomxin_GetInfo(uri, callbackFunction, errorFunction) { var Authorization = $.cookie('token'); uri = encodeURI(uri);//中文要转换 $.ajax({ url: base.sys_param.DOMIN + uri, typ...
var classde_1_1telekom_1_1pde_1_1codelibrary_1_1ui_1_1activity_1_1_p_d_e_fragment_activity = [ [ "onCreate", "classde_1_1telekom_1_1pde_1_1codelibrary_1_1ui_1_1activity_1_1_p_d_e_fragment_activity.html#aedc2cf1a9dd6f02226795a7c958c677e", null ], [ "onCreateView", "classde_1_1telekom_1_1pde_1_1codelibrary_1_1ui_...
var searchData= [ ['i2cdev',['I2CDev',['../class_i2_c_dev.html',1,'']]] ];
// utility functions import { BOARD_SIZE } from "./Component/Board/Board"; export var randomNumberFromInterval = (min, max) => { return Math.floor(Math.random() * (max - min + 1) + min); }; // this function will decide a random place where the snake food will be. export const createBoard = (BOARD_SIZE) => { // t...
'use strict'; authApp.controller('TranslateController', [ '$scope', '$translate', TranslateController]); function TranslateController($scope, $translate) { $scope.setRu =function () { $translate.use('ru'); }; $scope.setEn =function () { $translate.use('en'); }; }
import { StyleSheet } from 'react-native'; import variables, { scale } from '../../../styles/variables'; import { LIGHT_GREY, WHITE_COLOR, ORANGE, BLACK_COLOR, } from '../../../styles/constants'; const { regular, x_small, small } = variables.fontSize; export default StyleSheet.create({ wrapContainer: { ...
/** * rei.js * * Ray Lintner's test JS file * **/ // test creating functions as variables var sum_them = function(x,y) { return x + y; }; console.log(sum_them(1,2)); console.log(sum_them(2,3)); // Sample Object w Methods var Person = function(fn) { this.firstname = fn; this.sayhello = function() { ...
//登陆服务层 app.controller('indexController', function($http, $scope, loginService,$controller) { //读取当前登录人 $scope.showLoginName=function(){ loginService.loginName().success( function(response){ //定义变量loginName. 页面展示. $scope.loginName=response.loginName; } ); } });
Polymer({ is: "add-a-listing", properties:{ } })
/*! * Piwik - Web Analytics * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ $.fn.serializeObject = function(){ var obj = {}, arr = this.serializeArray(); $.each(arr, function() { if (obj[this.name] !== undefined) { if (!obj[thi...
//semi-intelligent role to reserve rooms- try to make // it work based on room visibility and which room // needs it's reservation renewed var roleInfestor = { run: function (creep) { var spawn = creep.memory.spawn; var target = creep.memory.target; var func = creep.memory.function;...
import InitFirebase from "../../../InitFirebase"; const firebase = InitFirebase('FirestoreDoc.js') export default class Collection { constructor() { this.db = firebase.firestore() } //---------------------------- OVERRIDES ------------------------- COLLECTION = '' /** * an async function to get data fr...
import React from 'react' import { Link } from 'react-router-dom' import Carousel from 'react-elastic-carousel' import '.././css/style.css' import Item from ".././components/Item"; function BlogTemplate(props) { const breakPoints = [ { width: 1, itemsToShow: 1, itemsToScroll: 1 }, { width: 800, ite...
$(document).ready(function() { $(".file-dropzone").on('dragover', handleDragEnter); $(".file-dropzone").on('dragleave', handleDragLeave); $(".file-dropzone").on('drop', handleDragLeave); /*Dropzone.autoDiscover = false;*/ function handleDragEnter(e) { this.classList.add('drag-over'); } function handleDra...
import AppCore from 'comptechsoft-app-starter' const Makers = AppCore.GridMakers, ColumnHelpers = require('./../../../~helpers/columns'), openDetailPage = (v, id) => { return v.$router.push({name: 'role-details', params: {id: id}}) }, actionDetails = { icon: 'fa fa-pencil', ...
const db=wx.cloud.database() const app=getApp() Page({ /** * 页面的初始数据 */ data: { taskList:["交易","食堂","外卖","快递"], taskType:">", taskTime:">" }, /** * 时间选择函数 */ bindTimeChange:function(e){ this.setData({ taskTime: e.detail.value }) }, /** * 类型选择函数 */ bindTypeC...
var num=Math.floor(Math.random()*(123-97)) + 97; console.log(num); var letra=""; letra=String.fromCharCode(num); console.log(letra); var introducirletra=prompt("Intenta introducir la letra correcta en minúscula") while (introducirletra!=letra) { var introducirletra=prompt("Inserta la letra otra vez"); } ...
import axios from 'axios' import VueAxios from 'vue-axios' import Vue from 'vue' import { getToken, removeToken } from "@/lib/auth"; import { Notification } from 'element-ui' import store from "@/store"; import router from '@/router' axios.defaults.timeout = 10000; // 超时时间 // axios.defaults.baseURL = apiURL; // 默认地...
// 安全键盘 import React, { Component, PureComponent } from "react"; import { StyleSheet, Dimensions, View, Text, TouchableOpacity, Modal, Image } from "react-native"; import CommonStyles from '../common/Styles'; const { width, height } = Dimensions.get('window'); export default class SecurityK...