Search is not available for this dataset
query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Function to fill panel with metadata
function FillMetaData(sampleID) { //Log something to confirm function has run console.log(`FillMetaData(${sampleID})`) ; //Get all data d3.json("data/samples.json").then((data) => { //Get all metadata var metadata = data.metadata ; function sel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function panelMetaData(url){\n\tpanelView = 'metadata';\n\tpanelShow(220, 'meta');\n\t$('panelFrame').src = myPath+'ressource/lib/media.metadata.php?url='+url;\n}", "static displayInfoPanel(panel, data) {\n // Updatte and display panel\n LibrariesMap.updatePanel(panel, data);\n panel.style(\...
[ "0.63559324", "0.6185917", "0.6137667", "0.6135924", "0.6128695", "0.6044617", "0.596727", "0.5960395", "0.5879616", "0.58402246", "0.58289564", "0.5823942", "0.58165866", "0.5814187", "0.57489324", "0.5735612", "0.5732636", "0.5713096", "0.565992", "0.56568307", "0.56543326"...
0.60846865
5
Function to draw bar graph
function DrawBarGraph(sampleID) { //Log something to confirm function has run console.log(`DrawBarGraph(${sampleID})`) ; //Get all data d3.json("data/samples.json").then((data) => { //Get all sample data var samples = data.samples ; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawBars() {\n\n xScale.domain(d3.range(actividades_jaca.length));\n yScale.domain([0, d3.max(actividades_jaca, function(d) {\n return +d.value;\n })]);\n\n bar_color.domain(d3.range(function(d) {\n return d.act_descripcion;\n }));\n var myBars = svgBar.selectAl...
[ "0.7787706", "0.7685388", "0.7646125", "0.75663185", "0.7465775", "0.7414493", "0.73906857", "0.7381859", "0.73299897", "0.7325269", "0.73214185", "0.7311632", "0.72999567", "0.7298588", "0.72946864", "0.7271654", "0.7267542", "0.7258741", "0.71999353", "0.71935606", "0.71628...
0.0
-1
Function to draw bubble chart
function DrawBubbleChart(sampleID) { //Console log something to confirm the function has been run console.log(`DrawBubbleChart(${sampleID})`) ; //Get all sample data d3.json("data/samples.json").then((data) => { //Get all sample data va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bubbleChart() {\r\n // Constants for sizing\r\n var width = 940; //940\r\n var height = 1200; //900\r\n\r\n // tooltip for mouseover functionality\r\n var tooltip = floatingTooltip('gates_tooltip', 240);\r\n\r\n // Locations to move bubbles towards, depending\r\n // on which view mode is selected.\...
[ "0.7150841", "0.7058681", "0.69527876", "0.68639225", "0.68389237", "0.6818478", "0.67777634", "0.6772885", "0.67587084", "0.6751831", "0.6680448", "0.6677145", "0.66738415", "0.6667395", "0.6623771", "0.66143125", "0.6606089", "0.659463", "0.6587099", "0.65783316", "0.657813...
0.65904486
18
Function to run on new subject ID selection
function optionChanged(newSampleID) { //Log new selection console.log(`User selected ${newSampleID}`) ; //Run functions to display data FillMetaData(newSampleID) ; DrawBarGraph(newSampleID) ; DrawBubbleChart(newSampleID) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function edit_current_subject_id(ev) {\n var currentRow = $(ev).parents()[2];\n var subjectID = $(currentRow)[0].cells[1].innerText;\n loadSubjectInformation(ev, subjectID);\n}", "function initialSubject(subject) {\n return subject.id === option;\n }", "function initialSubject(subject) {\n retu...
[ "0.65905076", "0.6508593", "0.6508593", "0.6249903", "0.61251116", "0.60840684", "0.599765", "0.5898479", "0.5877596", "0.578407", "0.575984", "0.575984", "0.575984", "0.575984", "0.5739689", "0.57240766", "0.57234794", "0.57221705", "0.57221705", "0.57205385", "0.5719351", ...
0.0
-1
Function to run to initialize the webpage dashboard
function InitDash() { //Console log initialization console.log(`Calling InitDash()`) ; //Link to Subject ID selector var selector = d3.select("#selDataset") ; //Get all data d3.json("data/samples.json").then((data) => { //Log all data...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initialize() {\n $.get(\"views/AdminHomePage.html\")\n .done(setup)\n .fail(error);\n }", "function init() {\n logger.info('init called');\n showAdminDashboard();\n $.app_config_window.init();\n}", "function init() {\n if ($('.scheduled-page').length > 0...
[ "0.7002243", "0.69893265", "0.695407", "0.69536906", "0.6903963", "0.67474747", "0.66913396", "0.6632997", "0.65788716", "0.6524819", "0.65109634", "0.6465937", "0.6459356", "0.6437554", "0.64230466", "0.64199495", "0.64140403", "0.6410165", "0.64100575", "0.640948", "0.64084...
0.0
-1
Get the current address from the default map position and set those values in the state
async componentWillMount() { if (this.props.location.state1) { this.setState({ state1: { ...this.props.location.state1 } }) console.log(this.props) } if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(res => { this.setState(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_customLocation() {\n if (this.state.somewhereElse) {\n this.getCoordsByAddress();\n } else {\n this._onForward();\n }\n }", "function defaultPosition ()\n{\n let lng = DEFAULT_LNG;\n\tlet lat = DEFAULT_LAT;\n\tlet coordinates = new Array();\n\tlet zoom = DEFAULT_ZOOM_MAP;\n \n coordi...
[ "0.64787436", "0.6370668", "0.63706374", "0.61451036", "0.6137455", "0.610143", "0.6034733", "0.6029838", "0.6007455", "0.59294283", "0.58845335", "0.58845335", "0.5852277", "0.58424515", "0.5830789", "0.5825988", "0.58074534", "0.5807348", "0.58028764", "0.58003974", "0.5779...
0.0
-1
Unserializes a PHP serialized data type. Currently handles: o Strings o Integers o Doubles o Arrays o Booleans o NULL o Objects alert()s will be thrown if the function is passed something it can't handle or incorrect data.
function PHP_Unserialize(input) { var result = PHP_Unserialize_(input); return result[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function PHP_Unserialize_(input)\n {\n var length = 0;\n \n switch (input.charAt(0)) {\n /**\n * Array\n */\n case 'a':\n length = PHP_Unserialize_GetLength(input);\n input = input.substr(String(length).length + 4);\...
[ "0.59909606", "0.5845813", "0.5845813", "0.5845813", "0.58366233", "0.57843405", "0.57843405", "0.5767918", "0.57280815", "0.57189465", "0.5714049", "0.56793356", "0.5628132", "0.5628132", "0.5628132", "0.5628132", "0.5628132", "0.5628132", "0.5628132", "0.5628132", "0.562813...
0.544133
26
Function which performs the actual unserializing
function PHP_Unserialize_(input) { var length = 0; switch (input.charAt(0)) { /** * Array */ case 'a': length = PHP_Unserialize_GetLength(input); input = input.substr(String(length).length + 4); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static deserialize() {}", "unarchive () {\n try {\n this.state.unarchiveValue(this.boxedValue);\n this.emit('state changed', this.state, this.state);\n } catch (err) {\n this.emit('state change failed', err);\n throw err;\n }\n }", "get serializedObject() {}", "unarchive () {\n ...
[ "0.64850235", "0.63184863", "0.619938", "0.61481744", "0.60357785", "0.5895046", "0.58817273", "0.5838331", "0.5780209", "0.5780209", "0.57792294", "0.572024", "0.572024", "0.572024", "0.572024", "0.572024", "0.572024", "0.572024", "0.572024", "0.572024", "0.572024", "0.572...
0.0
-1
Returns length of strings/arrays etc
function PHP_Unserialize_GetLength(input) { input = input.substring(2); var length = Number(input.substr(0, input.indexOf(':'))); return length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sc_stringLength(s) { return s.length; }", "function getLength(string1){\n return string1.getLength;\n}", "function length() {\n array = ['1', '2', '3'];\n return array.length\n}", "function length(val) {\n return val.toString().length;\n}", "function length(val) {\n return val.toString(...
[ "0.76025647", "0.7483496", "0.74345696", "0.73584527", "0.73584527", "0.73584527", "0.73456293", "0.7321102", "0.7321102", "0.7295098", "0.72838086", "0.7280688", "0.71911186", "0.71844417", "0.7152144", "0.71100545", "0.7107839", "0.710248", "0.710248", "0.710248", "0.707075...
0.0
-1
Returns the amount completed. If no entry provided, defaults to 0.
getCompleted(entry) { return entry ? entry.Completed : 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDayFinishedImportance() {\n\t\t\tif (vm.goals === undefined) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar total = 0;\n\n\t\t\tfor (var i = 0; i < vm.goals.length; i++) {\n\t\t\t\tif (vm.goals[i].done) {\n\t\t\t\t\ttotal += vm.goals[i].importance;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn total;\n\t\t}", "funct...
[ "0.6548429", "0.6427964", "0.6418862", "0.5913434", "0.56678355", "0.56548655", "0.5631926", "0.56194127", "0.55983305", "0.5598142", "0.5588036", "0.5588036", "0.5588036", "0.5588036", "0.5541141", "0.5499974", "0.5472975", "0.5465607", "0.5454265", "0.54459107", "0.5434044"...
0.7549603
0
Returns progress per day
getCompletedPerUnit() { return this.recentProgress / this.windowLength; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateProgress() {\n try {\n var gauge = getDailyTaskGauge();\n var progress = getProgress(gauge);\n if (progress === null) {\n return; // Progress is not there yet\n }\n if (!progress.done || progress.done === progress.total) {\n return;\n ...
[ "0.66509885", "0.6453805", "0.643962", "0.623771", "0.6080765", "0.6080765", "0.6080765", "0.6080765", "0.60583454", "0.6049123", "0.6045374", "0.60294104", "0.6009085", "0.59829384", "0.58873785", "0.5878932", "0.5835975", "0.5770034", "0.5739609", "0.5739579", "0.5699637", ...
0.53553635
46
Returns the amount needed to complete all. If not entry provided, defaults to 0.
getTotal(entry) { return entry ? entry.Total : 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "forAllDays() {\n if (this.breakDown() !== 'No Information to display') {\n let totalCost = this.breakDown().reduce((acc, item) => acc += item.totalCost, 0)\n return totalCost || 0;\n }\n }", "async fetchTotalSupply() {\n return Number(200000000);\n }", "async fetchTotalSupply() {\n co...
[ "0.64198774", "0.6377981", "0.6110003", "0.5969466", "0.5957851", "0.5884018", "0.5816744", "0.5772978", "0.5753986", "0.57276016", "0.57238543", "0.571838", "0.5679045", "0.5666483", "0.56384087", "0.56375724", "0.5615431", "0.5610933", "0.5602624", "0.5569584", "0.55661476"...
0.6277204
2
Returns the date that the last update was given. if no updates exists, defaults to null.
getLastUpdated(entry) { return entry ? entry.Created : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLastUpdateDate(){\n return lastUpdateDate;\n }", "function latestDate(latest, updated) {\n return ItemService.latestDate(latest, updated);\n }", "function getLastUpdate(){\r\n\t\tvar theDate = new Date();\r\n\t\t$.ajax({\r\n\t\t\tasync: false,\r\n\t\t\turl: root()+\"/rest/tour-l...
[ "0.76130474", "0.71211743", "0.6973311", "0.69528973", "0.6908495", "0.6730369", "0.66362506", "0.66109127", "0.66109127", "0.65739214", "0.6433558", "0.6408827", "0.6191148", "0.617171", "0.610384", "0.60791755", "0.6065455", "0.5792091", "0.5654585", "0.56240994", "0.562008...
0.6754554
5
Returns [windowStart, windowEnd] given a windowLength.
makeWindow(windowLength, windowUnits) { windowUnits = "days"; if (windowUnits === "days") { let currentDate = new Date(); let nDaysAgo = new Date(); nDaysAgo.setDate(currentDate.getDate() - windowLength); return [nDaysAgo, currentDate]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getStartAndEndIndexes(restrictions, arrLength) {\n let startIndex = 0;\n let endIndex = arrLength;\n for (const restriction of restrictions) {\n switch (restriction.type) {\n case RestrictionType.take:\n endIndex = Math.min(e...
[ "0.58655345", "0.56931823", "0.5522558", "0.5411669", "0.5236069", "0.52229655", "0.5179686", "0.516593", "0.5020255", "0.49571964", "0.4935332", "0.4906393", "0.4903703", "0.48997998", "0.4896162", "0.48827738", "0.48826873", "0.48515686", "0.48401284", "0.48082897", "0.4789...
0.6102923
0
A function which calculates the percentage of work which has been completed from the start of a window until the end of the window. The progress prior to the start of a window is the progress just before the window is reached.
progressDuringWindow(entries, window) { // No progress over a window if the window is empty. if (entries.length === 0) { return 0; } let [windowStartDate, windowEndDate] = window; let isInWindow = ((entry) => { let date = entry.Created; retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calculateCompletion() {\r\n $(\"#stepNo\").html(step);\r\n var percentCompleted = Math.round((step - 1) / (maxStep - 1) * 100 / 5) * 5;\r\n if (percentCompleted == 0) {\r\n percentCompleted += 5;\r\n }\r\n $(\"#percentCompleted\").html(percentCompleted);\r\n $(\"#percentMeter\").c...
[ "0.6847992", "0.6599772", "0.6564673", "0.655434", "0.6541317", "0.65225315", "0.6517035", "0.6507736", "0.6496724", "0.64105326", "0.64105326", "0.64105326", "0.64105326", "0.6370477", "0.6293015", "0.6240315", "0.6219531", "0.6107254", "0.6086636", "0.6020516", "0.6002135",...
0.69938457
0
Simplex spot's (memory management) and page refreshing:
function clr(position) { document.getElementById(position).innerHTML = ""; if (position == "listOfCompanies") { Simplex.Company.spots = []; } else { Simplex.Customer.spots = []; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function refresh_page() {\n refresh_preview();\n refresh_code();\n}", "function goFoward(){\n // update the master page number setting and fetch the next page of data\n page += 1\n getMonsters()\n}", "recacheOppPages() {\n this.getOppPages();\n }", "function NewRecFromX() {\n refreshPage();\n}"...
[ "0.5947475", "0.59219927", "0.5877005", "0.5856277", "0.5771535", "0.5747839", "0.5727401", "0.57086474", "0.5682861", "0.56414115", "0.5626832", "0.5603057", "0.55678916", "0.5512735", "0.5510782", "0.548876", "0.54600424", "0.5446892", "0.5439658", "0.54034686", "0.5395558"...
0.0
-1
FISHERYates (AKA Knuth) Shuffle
function shuffle(array) { var currentIndex = array.length, temporaryValue, randomIndex; // While there remain elements to shuffle while (0 !== currentIndex) { // Pick a remaining element randomIndex = Math.floor(Math.random() * currentIndex); currentIndex -= 1; // and swap ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "shuffle() {\n // TODO\n }", "shuffle()\n\t{\n\t\tlet temp;\n\t\tlet arraySpot;\n\t\tlet arraySpot2;\n\t\tfor (let x = 0; x < 1000000; x++)\n\t\t{\n\t\t\tarraySpot = Math.floor(Math.random() * this.numCards);\n\t\t\tarraySpot2 = Math.floor(Math.random() * this.numCards);\n\n\t\t\ttemp = this.cards[array...
[ "0.7958257", "0.76459867", "0.7491186", "0.747065", "0.7428924", "0.742738", "0.74234164", "0.74103016", "0.7401922", "0.7388429", "0.73859817", "0.7374912", "0.7361922", "0.73591334", "0.73583585", "0.7357037", "0.73462623", "0.7334249", "0.7332357", "0.73296666", "0.7326312...
0.0
-1
Show module header text
function showHeader() { // TODO: improve header grunt.log.subhead(consts.header); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function displayHeader() {\n log(chalk.yellow(figlet.textSync('Nodewood', { horizontalLayout: 'full' })));\n\n const packageObj = readJsonSync(resolve(__dirname, '../package.json'));\n log(`CLI Version ${packageObj.version}`);\n\n if (existsSync(resolve(process.cwd(), 'wood/package.json'))) {\n const nodewo...
[ "0.7423211", "0.6554797", "0.6455718", "0.63875544", "0.6327346", "0.6143736", "0.6133661", "0.6131899", "0.6069079", "0.6024398", "0.60014147", "0.5978523", "0.5969394", "0.59643227", "0.59513164", "0.5939149", "0.59208685", "0.5904506", "0.58921164", "0.58914655", "0.588720...
0.78218687
0
load tasks from devDependencies
function loadDevDependencies() { var packageJson = grunt.file.readJSON(consts.packageJson); var tasks = packageJson.devDependencies || {}; var prefix = consts.gruntPrefix; Object.keys(tasks).forEach(function(task) { if (task.indexOf(prefix) === 0) { grunt.loadNpmTasks(task) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "loadModulesTasks () {\n let self = this\n\n // get all active modules\n self.api.modules.modulesPaths.forEach(modulePath => {\n // build the task folder path for the current module\n let tasksFolder = `${modulePath}/tasks`\n\n // load task files\n this.api.utils.recursiveDirectoryGlob(...
[ "0.67817545", "0.66387326", "0.63531965", "0.6323428", "0.62878203", "0.6218314", "0.6212905", "0.6003939", "0.5985008", "0.5975308", "0.59500074", "0.5948847", "0.5942462", "0.59409845", "0.5931133", "0.5911906", "0.5788852", "0.5756761", "0.57515585", "0.5730113", "0.569754...
0.75636494
0
load configs for tasks
function loadConfigs() { grunt.file.expandMapping(settings.configs, '', { flatten: true, ext: '' }).forEach(function(configFile) { var config = {}; config[configFile.dest] = grunt.file.readJSON(configFile.src[0]); grunt.config.merge(config); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadConfig ( path ) {\n var object = {};\n var ConfigFile;\n var key;\n\n // Iterate over all config module files, and create a single config object.\n glob.sync( \"*\", { cwd: path } ).forEach( function ( option ) {\n // Each task file contains a constructor capable of creating a\n ...
[ "0.6534119", "0.64013404", "0.6353254", "0.6326574", "0.63031244", "0.6213241", "0.6180755", "0.6127645", "0.61234826", "0.6078715", "0.6062718", "0.6028768", "0.59690344", "0.59558576", "0.5930962", "0.5897823", "0.5875397", "0.583596", "0.58346456", "0.5831191", "0.5818943"...
0.70533586
0
Deletes all of the document's properties related to this application.
function clearAllProperties() { PropertiesService.getDocumentProperties().deleteAllProperties(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "clearProperties() {\n this._configuration._properties = []\n }", "function clear_data() {\n scriptProperties.deleteAllProperties();\n}", "function deletePreferences() {\n PropertiesService.getUserProperties().deleteAllProperties();\n}", "clear() {\n for (const key of Object.keys(this.datastore))...
[ "0.62714165", "0.62074065", "0.61436516", "0.6101657", "0.5992707", "0.5731832", "0.57268476", "0.5633454", "0.562737", "0.56132436", "0.5492887", "0.5478056", "0.5417314", "0.54139405", "0.5400262", "0.5363278", "0.5352446", "0.5347787", "0.53419083", "0.52633506", "0.524781...
0.7753131
0
for adding the graph when the api route is set up
componentDidMount() { this._isMounted = true; const dataArr = []; const editLabelsArr = [] axios.get('/company/chart-data?interval=daily&symbol=' + this.state.name) .then(response => { const rawLabelsArr = Object.keys(response.data['Time Series (Daily)']); const respArr = Object.va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onRoute (info) {\n openApi.addRoute(info, {\n basePath: env.REST_API_PREFIX\n })\n }", "function addRoutes(api) {\n //api.post('/api/v2/outbound/:name', postItem);\n}", "function apiHandler(req, reply) {\n\n var rb = new RepresentationBuilder(settings.relsUrl);\n va...
[ "0.6730868", "0.6454058", "0.59071964", "0.57747126", "0.5615423", "0.56115526", "0.55984026", "0.5595431", "0.55941635", "0.5583588", "0.5554612", "0.55541575", "0.55460376", "0.55362827", "0.55273056", "0.5513935", "0.54267406", "0.5377955", "0.5372062", "0.5370414", "0.536...
0.0
-1
You might know some pretty large perfect squares. But what about the NEXT one? Complete the findNextSquare method that finds the next integral perfect square after the one passed as a parameter. Recall that an integral perfect square is an integer n such that sqrt(n) is also an integer. If the parameter is itself not a...
function findNextSquare(sq) { return Math.sqrt(sq) % 1 === 0 ? Math.pow(Math.sqrt(sq) + 1, 2) : -1 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function findNextSquare(sq) {\n // Return the next square if sq if a perfect square, -1 otherwise\n let tmp = Math.sqrt(sq);\n return tmp % 1 === 0 ? (tmp+1) ** 2 : -1;\n}", "function findNextSquare(sq) {\n // Return the next square if sq if a perfect square, -1 otherwise\n if (Math.sqrt(sq) % 1 = 0)...
[ "0.84383506", "0.8425933", "0.8374369", "0.83382416", "0.8285166", "0.82254475", "0.8210789", "0.81584173", "0.7310578", "0.68851006", "0.68249583", "0.6811872", "0.68073183", "0.67388666", "0.6690846", "0.66639507", "0.65994716", "0.6584425", "0.6550628", "0.65221256", "0.65...
0.82604015
5
use the fetched data to change the content of the webpage
function updateWebpage(jsonData) { let logoutString = ""; if (jsonData.length > 0) { document.getElementById("userInfo").innerHTML = "<a href='shoping-cart.html' id='accountName' class='flex-c-m trans-04 p-lr-25'>" + jsonData[0].user + "</a>"; document.getElementById...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateContent(data){\n $(\".data\").addClass(\"data-custom\");\n if(data == 'Jadwal'){\n $('.data').load('https://atmascribe.thekingcorp.org/dashboard/jadwal.php');\n }else if(data == 'Catatan'){\n $('.data').load('https://atmascribe.thekingcorp.org/dashboard/cat...
[ "0.693415", "0.6623287", "0.6570214", "0.65429044", "0.65287554", "0.6409891", "0.63574535", "0.63301605", "0.6327412", "0.630104", "0.6228863", "0.62261826", "0.6218751", "0.6178349", "0.6176061", "0.61657935", "0.61481875", "0.6116122", "0.60804075", "0.60744464", "0.607096...
0.0
-1
use the fetched data to change the content of the webpage
function updateWebpage(jsonData) { if (jsonData.length !== 0) { document.getElementById("loginError").style.visibility = "hidden"; closeModel(); window.location.reload(false); } else { document.getElementById("loginError").style.visibi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateContent(data){\n $(\".data\").addClass(\"data-custom\");\n if(data == 'Jadwal'){\n $('.data').load('https://atmascribe.thekingcorp.org/dashboard/jadwal.php');\n }else if(data == 'Catatan'){\n $('.data').load('https://atmascribe.thekingcorp.org/dashboard/cat...
[ "0.6934801", "0.6622322", "0.6571235", "0.6542415", "0.6527961", "0.64084613", "0.635745", "0.63294786", "0.6327976", "0.63007057", "0.6228934", "0.6227037", "0.62184906", "0.6176825", "0.61767304", "0.6165914", "0.61482215", "0.6115881", "0.60805917", "0.6074882", "0.6070597...
0.0
-1
Support: IE 8 only IE 8 doesn't resolve inherit to visible/hidden for computed values
function visible( element ) { var visibility = element.css( "visibility" ); while ( visibility === "inherit" ) { element = element.parent(); visibility = element.css( "visibility" ); } return visibility !== "hidden"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function visible(element){var visibility=element.css(\"visibility\");while(visibility===\"inherit\"){element=element.parent();visibility=element.css(\"visibility\");}return visibility!==\"hidden\";}", "function visible(element){var visibility=element.css(\"visibility\");while(visibility===\"inherit\"){element=el...
[ "0.66388506", "0.66388506", "0.66388506", "0.64911187", "0.64632285", "0.64417684", "0.6345706", "0.6240251", "0.6240023", "0.6214386", "0.6129838", "0.6097701", "0.60812134", "0.6053089", "0.59458554", "0.59351254", "0.5925842", "0.5925842", "0.5925842", "0.58877254", "0.588...
0.5654479
56
Hsla conversions adapted from:
function hue2rgb( p, q, h ) { h = ( h + 1 ) % 1; if ( h * 6 < 1 ) { return p + ( q - p ) * h * 6; } if ( h * 2 < 1 ) { return q; } if ( h * 3 < 2 ) { return p + ( q - p ) * ( ( 2 / 3 ) - h ) * 6; } return p; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "asHSL(ao) {\r\n return \"hsla(\" + this.h + \",\" + this.s + \"%,\" + this.l + \"%,\" + ((ao == undefined) ? this.a : ao) + \")\";\r\n }", "function toHsla(color) {\n return hsla.apply(void 0, _toConsumableArray(parseToHsla(color)));\n}", "get hsla() {\n let [r, g, b] = Color.RGBToHSL(this.r, thi...
[ "0.7133651", "0.67769027", "0.6755668", "0.6324228", "0.6225854", "0.6159526", "0.6121742", "0.6099015", "0.6035403", "0.60138047", "0.59944344", "0.5990486", "0.5912217", "0.59084344", "0.58544767", "0.58468235", "0.5794691", "0.57934284", "0.5764424", "0.5762542", "0.576056...
0.0
-1
Return an effect options object for the given parameters:
function _normalizeArguments( effect, options, speed, callback ) { // Allow passing all options as the first parameter if ( $.isPlainObject( effect ) ) { options = effect; effect = effect.effect; } // Convert to an object effect = { effect: effect }; // Catch (effect, null, ...) if ( options == null ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _normalizeArguments(effect,options,speed,callback){// Allow passing all options as the first parameter\nif($.isPlainObject(effect)){options=effect;effect=effect.effect;}// Convert to an object\neffect={effect:effect};// Catch (effect, null, ...)\nif(options==null){options={};}// Catch (effect, callback)\n...
[ "0.6347149", "0.6347149", "0.6347149", "0.63467276", "0.63418317", "0.6338891", "0.6337124", "0.63056165", "0.62794554", "0.62557024", "0.6253451", "0.6253451", "0.6253451", "0.6253451", "0.6253451", "0.6253451", "0.6253451", "0.6253451", "0.6253451", "0.6253451", "0.6253451"...
0.6282349
20
Date picker manager. Use the singleton instance of this class, $.datepicker, to interact with the date picker. Settings for (groups of) date pickers are maintained in an instance object, allowing multiple different settings on the same page.
function Datepicker() { this._curInst = null; // The current instance in use this._keyEvent = false; // If the last event was a key event this._disabledInputs = []; // List of date picker inputs that have been disabled this._datepickerShowing = false; // True if the popup picker is showing , false if not this._inD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Datepicker() {\r\n\tthis.debug = false; // Change this to true to start debugging\r\n\tthis._nextId = 0; // Next ID for a date picker instance\r\n\tthis._inst = []; // List of instances indexed by ID\r\n\tthis._curInst = null; // The current instance in use\r\n\tthis._disabledInputs = []; // List of date ...
[ "0.7428809", "0.7284007", "0.7284007", "0.7284007", "0.7284007", "0.7284007", "0.7284007", "0.7284007", "0.7284007", "0.7284007", "0.7196903", "0.7196903", "0.71880096", "0.71880096", "0.71880096", "0.71880096", "0.71880096", "0.71880096", "0.71880096", "0.71880096", "0.71880...
0.7163193
73
Bind hover events for datepicker elements. Done via delegate so the binding only occurs once in the lifetime of the parent div. Global datepicker_instActive, set by _updateDatepicker allows the handlers to find their way back to the active picker.
function datepicker_bindHover( dpDiv ) { var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a"; return dpDiv.on( "mouseout", selector, function() { $( this ).removeClass( "ui-state-hover" ); if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) { $( this ).re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function datepicker_bindHover(dpDiv){var selector=\"button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a\";return dpDiv.delegate(selector,\"mouseout\",function(){$(this).removeClass(\"ui-state-hover\");if(this.className.indexOf(\"ui-datepicker-prev\") !== -1){$(this).removeClass(\"ui-date...
[ "0.7933769", "0.79029775", "0.79018223", "0.79018223", "0.79018223", "0.78855205", "0.7874116", "0.7865905", "0.77415663", "0.76936185", "0.76936185", "0.76936185", "0.76936185", "0.76936185", "0.76936185", "0.76936185", "0.76936185", "0.76936185", "0.76936185", "0.76936185", ...
0.7755867
27
jQuery extend now ignores nulls!
function datepicker_extendRemove( target, props ) { $.extend( target, props ); for ( var name in props ) { if ( props[ name ] == null ) { target[ name ] = props[ name ]; } } return target; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jQueryExtend() {\n var options, name, src, copy, copyIsArray, clone,\n target = arguments[0] || {},\n i = 1,\n length = arguments.length,\n deep = false;\n\n // Handle a deep copy situation\n if ( typeof target ==...
[ "0.73487353", "0.696477", "0.6951151", "0.6454417", "0.6113531", "0.6113531", "0.60536283", "0.60536283", "0.5966844", "0.5964627", "0.5964627", "0.5964627", "0.5964627", "0.5964627", "0.5964627", "0.59418887", "0.59309053", "0.59309053", "0.5918109", "0.5908905", "0.59048486...
0.0
-1
Post events to containers
function delayEvent( type, instance, container ) { return function( event ) { container._trigger( type, event, instance._uiHash( instance ) ); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function postEvents(req, res, next) {\n jackalopeApp.jackrabbitConnection.publish('queue.simple', req.body);\n res.status(200).end();\n }", "function registerEvents(Remci) {\n for(var e in events) {\n let event = events[e];\n Remci.post(e, emitEvent(event));\n }\n}", "function onContai...
[ "0.6496375", "0.63010883", "0.5960383", "0.5890177", "0.5843974", "0.5827947", "0.5778853", "0.57435614", "0.5645402", "0.56397086", "0.55770916", "0.55728555", "0.5566734", "0.5565772", "0.55490434", "0.55484766", "0.55384415", "0.5507436", "0.5482938", "0.54693615", "0.5421...
0.0
-1
CSS TRANSITION SUPPORT (Shoutout: ============================================================
function transitionEnd() { var el = document.createElement('bootstrap') var transEndEventNames = { WebkitTransition : 'webkitTransitionEnd', MozTransition : 'transitionend', OTransition : 'oTransitionEnd otransitionend', transition : 'transitionend' } for (var nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "turnOn() {\n this.wrapper.style[Modernizr.prefixed('transition')] = Modernizr.prefixed('transform') + ' .25s';\n return this;\n }", "function reverseTranslate(newFrom){return $animateCss(target,{to:newFrom||from,addClass:options.transitionOutClass,removeClass:options.transitionInClas...
[ "0.6393953", "0.6336419", "0.6114559", "0.6032447", "0.5986384", "0.5921837", "0.58967936", "0.58893085", "0.58399415", "0.5776753", "0.5745631", "0.5745631", "0.57420325", "0.5735266", "0.56971765", "0.5676085", "0.5676085", "0.5676085", "0.56695634", "0.56695634", "0.566956...
0.0
-1
ALERT PLUGIN DEFINITION =======================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.alert') if (!data) $this.data('bs.alert', (data = new Alert(this))) if (typeof option == 'string') data[option].call($this) }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.alert');if(!data)$this.data('bs.alert',data=new Alert(this));if(typeof option=='string')data[option].call($this);});}", "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.aler...
[ "0.66825145", "0.66825145", "0.652528", "0.64891756", "0.64770555", "0.6476156", "0.633078", "0.633078", "0.633078", "0.633078", "0.6320177", "0.6313426", "0.6313426", "0.6313426", "0.6313426", "0.6313426", "0.6306269", "0.62964594" ]
0.0
-1
BUTTON PLUGIN DEFINITION ========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.button') var options = typeof option == 'object' && option if (!data) $this.data('bs.button', (data = new Button(this, options))) if (option == 'toggle') data.toggle() el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.button');var options=(typeof option===\"undefined\"?\"undefined\":_typeof2(option))=='object'&&option;if(!data)$this.data('bs.button',data=new Button(this,options));if(option=='toggle')data.toggle();else if(option)data.se...
[ "0.74375784", "0.7412515", "0.6891406", "0.68506175", "0.683741", "0.68005764", "0.68005764", "0.68005764", "0.68005764", "0.68005764", "0.6782781", "0.6782781", "0.6782781", "0.6782781", "0.6772104", "0.673167", "0.67157936", "0.67157936", "0.67157936", "0.67157936", "0.6706...
0.0
-1
CAROUSEL PLUGIN DEFINITION ==========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.carousel') var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option) var action = typeof option == 'string' ? option : options.slide if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option) {\n return this.each(function () {\n var $this = $(this)\n var data = $this.data('bs.carasel')\n var options = $.extend({}, Carasel.DEFAULTS, $this.data(), typeof option == 'object' && option)\n var action = typeof option == 'string' ? opti...
[ "0.63796365", "0.62648964", "0.6264771", "0.6264771", "0.62638766", "0.6258754", "0.61871845", "0.61719376", "0.61667055", "0.6105481", "0.60075915", "0.59962183", "0.59962183", "0.59962183", "0.59962183", "0.5991537", "0.59894055", "0.5898738", "0.58794457", "0.58706415", "0...
0.0
-1
COLLAPSE PLUGIN DEFINITION ==========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.collapse') var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option) if (!data && options.toggle && /show|hide/.test(option)) options.toggle = f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "collapseMenu() {\r\n\t}", "function Plugin(option) {\n\t return this.each(function () {\n\t var $this = $(this)\n\t var data = $this.data('bs.collapse')\n\t var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)\n\t\n\t if (!data && options.to...
[ "0.6486049", "0.6296623", "0.62385464", "0.623668", "0.623668", "0.623668", "0.6227426", "0.6227426", "0.6227426", "0.6227426", "0.6227426", "0.6120024", "0.61194295", "0.61194295", "0.61194295", "0.61194295", "0.61194295", "0.61194295", "0.61194295", "0.61194295", "0.6119429...
0.0
-1
DROPDOWN PLUGIN DEFINITION ==========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.dropdown') if (!data) $this.data('bs.dropdown', (data = new Dropdown(this))) if (typeof option == 'string') data[option].call($this) }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.dropdown');if(!data)$this.data('bs.dropdown',data=new Dropdown(this));if(typeof option=='string')data[option].call($this);});}", "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data...
[ "0.68540573", "0.68540573", "0.6542041", "0.63469607", "0.6314009", "0.6314009", "0.6314009", "0.6314009", "0.6314009", "0.629638", "0.629638", "0.629638", "0.629638", "0.629638", "0.6274084", "0.6171628", "0.6125852", "0.61163723", "0.61163723", "0.6078199", "0.6062121", "...
0.0
-1
MODAL PLUGIN DEFINITION =======================
function Plugin(option, _relatedTarget) { return this.each(function () { var $this = $(this) var data = $this.data('bs.modal') var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option) if (!data) $this.data('bs.modal', (data = new Modal(this, options...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option,_relatedTarget){return this.each(function(){var $this=$(this);var data=$this.data('bs.modal');var options=$.extend({},Modal.DEFAULTS,$this.data(),(typeof option==='undefined'?'undefined':_typeof(option))=='object'&&option);if(!data)$this.data('bs.modal',data=new Modal(this,options));if(typeo...
[ "0.76139903", "0.76115245", "0.70646596", "0.6972817", "0.6972817", "0.6972817", "0.6972817", "0.6972817", "0.69641304", "0.6953349", "0.6953349", "0.6953349", "0.6953349", "0.6953349", "0.69410294", "0.6926216", "0.6868749", "0.6868749", "0.6868749", "0.6868749", "0.6868749"...
0.0
-1
TAB PLUGIN DEFINITION =====================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.tab') if (!data) $this.data('bs.tab', (data = new Tab(this))) if (typeof option == 'string') data[option]() }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.tab');if(!data)$this.data('bs.tab',data=new Tab(this));if(typeof option=='string')data[option]();});}", "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.tab');if(!data)$this...
[ "0.74221855", "0.74221855", "0.6926234", "0.68419343", "0.6838862", "0.6826894", "0.6680064", "0.6680064", "0.6680064", "0.6680064", "0.66651094", "0.664349", "0.664349", "0.664349", "0.664349", "0.664349", "0.66044945", "0.6585506", "0.6567317", "0.6557344", "0.65404296", ...
0.0
-1
AFFIX PLUGIN DEFINITION =======================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.affix') var options = typeof option == 'object' && option if (!data) $this.data('bs.affix', (data = new Affix(this, options))) if (typeof option == 'string') data[option]() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.affix');var options=(typeof option==='undefined'?'undefined':_typeof(option))=='object'&&option;if(!data)$this.data('bs.affix',data=new Affix(this,options));if(typeof option=='string')data[option]();});}", "function Plu...
[ "0.64133567", "0.6395302", "0.5915419", "0.5915419", "0.5915419", "0.5915419", "0.5908705", "0.58645165", "0.58645165", "0.5859996", "0.58575773", "0.58575773", "0.58575773", "0.58575773", "0.58575773", "0.58318794", "0.5786335", "0.57438296" ]
0.0
-1
SCROLLSPY CLASS DEFINITION ==========================
function ScrollSpy(element, options) { this.$body = $(document.body) this.$scrollElement = $(element).is(document.body) ? $(window) : $(element) this.options = $.extend({}, ScrollSpy.DEFAULTS, options) this.selector = (this.options.target || '') + ' .nav li > a' this.offsets ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set scrolling(scrolling) {\n this._scrolling = scrolling;\n }", "function ScrollPosition() {}", "constructor() {\n this.instance = createScrollBar();\n }", "get scrollTarget(){return this.$.scrollable}", "constructor(props){\n super(props);\n this.state = {\n ...
[ "0.6424849", "0.6409387", "0.63328534", "0.6303255", "0.62154484", "0.6214183", "0.6214183", "0.6214183", "0.6214183", "0.6203554", "0.6202512", "0.61928904", "0.61734974", "0.6135548", "0.6109564", "0.6094813", "0.6077772", "0.6066652", "0.6066099", "0.6064882", "0.6058574",...
0.0
-1
SCROLLSPY PLUGIN DEFINITION ===========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.scrollspy') var options = typeof option == 'object' && option if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options))) if (typeof option == 'string') data[op...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.scrollspy');var options=(typeof option==='undefined'?'undefined':_typeof(option))=='object'&&option;if(!data)$this.data('bs.scrollspy',data=new ScrollSpy(this,options));if(typeof option=='string')data[option]();});}", "...
[ "0.6855755", "0.68373764", "0.6573799", "0.647004", "0.63559544", "0.63071066", "0.6285276", "0.6272792", "0.62671083", "0.61943835", "0.61943835", "0.61943835", "0.61943835", "0.61841965", "0.6171709", "0.6162518", "0.6158663", "0.6158663", "0.6158663", "0.6158663", "0.61586...
0.0
-1
TOOLTIP PLUGIN DEFINITION =========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.tooltip') var options = typeof option == 'object' && option if (!data && /destroy|hide/.test(option)) return if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_addTooltips() {\n $(this.el.querySelectorAll('[title]')).tooltip({\n delay: { show: 500, hide: 0 }\n });\n }", "function initInstanceInfoTooltip() {\n jQuery('#instance-tooltip').tooltip();\n}", "get tooltip() {}", "function tooltips() {\r\n\t$('.tooltip-link')...
[ "0.7193489", "0.7177543", "0.71230096", "0.7107687", "0.7008811", "0.69535863", "0.6937391", "0.6877154", "0.685422", "0.68206614", "0.6799643", "0.6799365", "0.6754513", "0.6752117", "0.6705143", "0.6687539", "0.6659539", "0.66462636", "0.6641098", "0.66409045", "0.66404915"...
0.0
-1
POPOVER PLUGIN DEFINITION =========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.popover') var options = typeof option == 'object' && option if (!data && /destroy|hide/.test(option)) return if (!data) $this.data('bs.popover', (data = new Popover(this, option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function PopoverConfig() { }", "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.popover');var options=(typeof option==='undefined'?'undefined':_typeof(option))=='object'&&option;if(!data&&/destroy|hide/.test(option))return;if(!data)$this.data('bs.popover',data=new Po...
[ "0.65172714", "0.6155215", "0.614206", "0.60616994", "0.6005223", "0.59905416", "0.59692305", "0.58698756", "0.58214915", "0.58214915", "0.5795073", "0.5791303", "0.5788668", "0.57536405", "0.5745262", "0.572578", "0.5721664", "0.57004213", "0.5683987", "0.5673775", "0.564506...
0.0
-1
INITIALIZE Tests if smooth scrolling is allowed. Shuts down everything if not.
function initTest() { if (options.keyboardSupport) { addEvent('keydown', keydown); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function init(){\n\tnew SmoothScroll(document,200,2)\n}", "function smoothScrollInit() {\r\n\r\n\t \t\t\t\t// Smooth scroll\r\n\t\t $('a[href^=\"#\"]').bind('click.smoothscroll',function (e) {\r\n\t\t e.preventDefault();\r\n\r\n\t\t var target = this.hash,\r\n\t\t ...
[ "0.67159796", "0.6269338", "0.61702", "0.6081878", "0.605077", "0.6042411", "0.6040828", "0.601602", "0.59958553", "0.59695464", "0.590849", "0.59041363", "0.58908796", "0.587156", "0.5858725", "0.58292544", "0.5809065", "0.58084", "0.57955796", "0.577825", "0.577825", "0.5...
0.0
-1
Sets up scrolls array, determines if frames are involved.
function init() { if (initDone || !document.body) return; initDone = true; var body = document.body; var html = document.documentElement; var windowHeight = window.innerHeight; var scrollHeight = body.scrollHeight; // check compat mode for root element root = (document.compatM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CameraCommand_Scroll_Initialise()\n{\n\t//remember camera state to restore it later\n\tthis.IsShowingCamera = this.Camera && this.Camera.CameraUI.IsShowing;\n\t//ensure that the target's form is active\n\tForm_SetFocusOnParentWindow(this.TargetHTML);\n\t//loop through all the parents of the html target\n\...
[ "0.6319185", "0.62915933", "0.62647915", "0.6257264", "0.62265134", "0.6216714", "0.6109716", "0.60957474", "0.6087124", "0.6050475", "0.60032946", "0.59876317", "0.5986244", "0.5964338", "0.5948528", "0.5934599", "0.59252155", "0.5911596", "0.589448", "0.585027", "0.5846266"...
0.0
-1
Removes event listeners and other traces left on the page.
function cleanup() { observer && observer.disconnect(); removeEvent(wheelEvent, wheel); removeEvent('mousedown', mousedown); removeEvent('keydown', keydown); removeEvent('resize', refreshSize); removeEvent('load', init); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_removeListeners() {\n try {\n WINDOW$1.document.removeEventListener('visibilitychange', this._handleVisibilityChange);\n\n WINDOW$1.removeEventListener('blur', this._handleWindowBlur);\n WINDOW$1.removeEventListener('focus', this._handleWindowFocus);\n\n restoreRecordDroppedEvent(...
[ "0.7656854", "0.7467947", "0.73551154", "0.7288245", "0.722046", "0.72113097", "0.72113097", "0.72113097", "0.71965146", "0.71805817", "0.71619934", "0.71619934", "0.71619934", "0.71597445", "0.71597445", "0.71395564", "0.7121679", "0.70734876", "0.7039592", "0.70312464", "0....
0.7113102
18
Pushes scroll actions to the scrolling queue.
function scrollArray(elem, left, top) { directionCheck(left, top); if (options.accelerationMax != 1) { var now = Date.now(); var elapsed = now - lastScroll; if (elapsed < options.accelerationDelta) { var factor = (1 + (50 / elapsed)) / 2; if (factor > 1) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dispatch() {\n var currScrollTop = window.pageYOffset;\n\n var appSectionHeight = $('#app-section-1').height();\n\n var scrollInfo = {\n windowHeight: appSectionHeight,\n scrollHeight: $(document.body).prop('scrollHeight'),\n scrollTop: currScrollTop,\n directi...
[ "0.6285485", "0.6034096", "0.59402984", "0.59402984", "0.58982974", "0.58505315", "0.58256084", "0.58256084", "0.58256084", "0.58256084", "0.58256084", "0.5779469", "0.5779469", "0.5772349", "0.5771582", "0.5755845", "0.5745991", "0.57384974", "0.5733943", "0.5733943", "0.569...
0.5953639
3
Mousedown event only for updating activeElement
function mousedown(event) { activeElement = event.target; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mousedown(event) {\n activeElement = event.target;\n }", "function mousedown(event) {\n activeElement = event.target;\n }", "function mousedown(event) {\r\n activeElement = event.target;\r\n}", "function mousedown(event) {\r\n activeElement = event...
[ "0.8798445", "0.87899625", "0.8754566", "0.8754566", "0.8754566", "0.8754566", "0.8754189", "0.8754189", "0.8754189", "0.8190667", "0.66085976", "0.6604286", "0.6601424", "0.6601424", "0.65757895", "0.65757895", "0.65397", "0.6478562", "0.644599", "0.64423376", "0.6441396", ...
0.875648
7
(body) (root) | hidden | visible | scroll | auto | hidden | no | no | YES | YES | visible | no | YES | YES | YES | scroll | no | YES | YES | YES | auto | no | YES | YES | YES |
function overflowingAncestor(el) { var elems = []; var body = document.body; var rootScrollHeight = root.scrollHeight; do { var cached = cache[uniqueID(el)]; if (cached) { return setCache(elems, cached); } elems.push(el); if (rootScrollHeight === el.sc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "toggle() {\n if (!this.state.isVisible) {\n document.body.style.overflowY = \"hidden\";\n } else {\n document.body.style.overflowY = \"visible\";\n }\n\n this.setState({ isVisible: !this.state.isVisible });\n }", "_togglePageScrollability() {\n const pageContainer = document.querySelect...
[ "0.6388341", "0.61094135", "0.6089561", "0.6031865", "0.60200965", "0.59641176", "0.59382236", "0.5926776", "0.59114856", "0.58557457", "0.5842175", "0.58417916", "0.58174586", "0.58174586", "0.581256", "0.5801329", "0.5794813", "0.57940525", "0.57829285", "0.5777181", "0.576...
0.0
-1
for all other elements
function overflowAutoOrScroll(el) { var overflow = getComputedStyle(el, '').getPropertyValue('overflow-y'); return (overflow === 'scroll' || overflow === 'auto'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getAllElements(output){\n if(this.isParent){\n output = this.northeast.getAllElements(output);\n output = this.northwest.getAllElements(output);\n output = this.southeast.getAllElements(output);\n output = this.southwest.getAllElements(output);\n }\n else{\n output = output.concat...
[ "0.5855151", "0.571587", "0.5698334", "0.5625825", "0.5581389", "0.5574872", "0.55149144", "0.5439023", "0.543044", "0.5365002", "0.53316796", "0.53194016", "0.5314378", "0.53090346", "0.52736604", "0.52452815", "0.52452815", "0.52217567", "0.51826245", "0.51771444", "0.51674...
0.0
-1
PULSE (by Michael Herf) Viscous fluid with a pulse for part and decay for the rest. Applies a fixed force over an interval (a damped acceleration), and Lets the exponential bleed away the velocity over a longer interval Michael Herf,
function pulse_(x) { var val, start, expx; // test x = x * options.pulseScale; if (x < 1) { // acceleartion val = x - (1 - Math.exp(-x)); } else { // tail // the previous animation ended here: start = Math.exp(-1); // simple viscous drag x -= 1; ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Pulse_(x)\n{\n var val;\n \n // test\n x = x * PulseScale;\n if (x < 1) {val = x - (1 - Math.exp(-x));} \n else {\n // the previous animation ended here:\n var start = Math.exp(-1);\n\n // simple viscous drag\n x -= 1;\n var expx = 1 - Math.exp(-x);\n val = start + (expx * (1.0 - s...
[ "0.658138", "0.6415845", "0.6415845", "0.6415845", "0.6415845", "0.630598", "0.62738556", "0.6273051", "0.6243835", "0.6243835", "0.6221363", "0.60032463", "0.5980885", "0.5844121", "0.57862115", "0.56757516", "0.5561776", "0.555421", "0.54865277", "0.54752094", "0.54212415",...
0.63593006
11
SELECTPICKER PLUGIN DEFINITION ==============================
function Plugin(option, event) { // get the args of the outer function.. var args = arguments; // The arguments of the function are explicitly re-defined from the argument list, because the shift causes them // to get lost/corrupted in android 2.3 and IE9 #715 #775 var _option = option, _eve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function selectBox() {\r\n\r\n\t//Select box\r\n\t$('.select-box').selectpicker();\r\n}", "function selectPickers()\n\t{\n\t\tselectPicker.locations('.location-0', \"\", \"\", 0, 'location_text');\n\t\tselectPicker.industries('.industry-0', \"\", \"\", 0, 'industry_text');\n\t\tselectPicker.currencies('.currency...
[ "0.72407556", "0.7131169", "0.7068673", "0.7052736", "0.7010687", "0.68328893", "0.6627438", "0.64478856", "0.6432052", "0.63287413", "0.63132244", "0.63081807", "0.6294986", "0.6256861", "0.6256861", "0.6256861", "0.62543255", "0.6254103", "0.6254103", "0.6218954", "0.621895...
0.62434274
20
CSS TRANSITION SUPPORT (Shoutout: ============================================================
function transitionEnd() { var el = document.createElement('bootstrap') var transEndEventNames = { WebkitTransition : 'webkitTransitionEnd', MozTransition : 'transitionend', OTransition : 'oTransitionEnd otransitionend', transition : 'transitionend' } for (var nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "turnOn() {\n this.wrapper.style[Modernizr.prefixed('transition')] = Modernizr.prefixed('transform') + ' .25s';\n return this;\n }", "function reverseTranslate(newFrom){return $animateCss(target,{to:newFrom||from,addClass:options.transitionOutClass,removeClass:options.transitionInClas...
[ "0.6393953", "0.6336419", "0.6114559", "0.6032447", "0.5986384", "0.5921837", "0.58967936", "0.58893085", "0.58399415", "0.5776753", "0.5745631", "0.5745631", "0.57420325", "0.5735266", "0.56971765", "0.5676085", "0.5676085", "0.5676085", "0.56695634", "0.56695634", "0.566956...
0.0
-1
ALERT PLUGIN DEFINITION =======================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.alert') if (!data) $this.data('bs.alert', (data = new Alert(this))) if (typeof option == 'string') data[option].call($this) }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.alert');if(!data)$this.data('bs.alert',data=new Alert(this));if(typeof option=='string')data[option].call($this);});}", "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.aler...
[ "0.66825145", "0.66825145", "0.652528", "0.64891756", "0.64770555", "0.6476156", "0.633078", "0.633078", "0.633078", "0.633078", "0.6320177", "0.6313426", "0.6313426", "0.6313426", "0.6313426", "0.6313426", "0.6306269", "0.62964594" ]
0.0
-1
BUTTON PLUGIN DEFINITION ========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.button') var options = typeof option == 'object' && option if (!data) $this.data('bs.button', (data = new Button(this, options))) if (option == 'toggle') data.toggle() el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.button');var options=(typeof option===\"undefined\"?\"undefined\":_typeof2(option))=='object'&&option;if(!data)$this.data('bs.button',data=new Button(this,options));if(option=='toggle')data.toggle();else if(option)data.se...
[ "0.74375784", "0.7412515", "0.6891406", "0.68506175", "0.683741", "0.68005764", "0.68005764", "0.68005764", "0.68005764", "0.68005764", "0.6782781", "0.6782781", "0.6782781", "0.6782781", "0.6772104", "0.673167", "0.67157936", "0.67157936", "0.67157936", "0.67157936", "0.6706...
0.0
-1
CAROUSEL PLUGIN DEFINITION ==========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.carousel') var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option) var action = typeof option == 'string' ? option : options.slide if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option) {\n return this.each(function () {\n var $this = $(this)\n var data = $this.data('bs.carasel')\n var options = $.extend({}, Carasel.DEFAULTS, $this.data(), typeof option == 'object' && option)\n var action = typeof option == 'string' ? opti...
[ "0.6379598", "0.6264771", "0.6262725", "0.6262725", "0.6262722", "0.6258606", "0.61864763", "0.6170344", "0.61654943", "0.610548", "0.6006559", "0.59945756", "0.59945756", "0.59945756", "0.59945756", "0.5990424", "0.59875757", "0.58972824", "0.58782446", "0.58704406", "0.5851...
0.0
-1
COLLAPSE PLUGIN DEFINITION ==========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.collapse') var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option) if (!data && options.toggle && /show|hide/.test(option)) options.toggle = f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "collapseMenu() {\r\n\t}", "function Plugin(option) {\n\t return this.each(function () {\n\t var $this = $(this)\n\t var data = $this.data('bs.collapse')\n\t var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)\n\t\n\t if (!data && options.to...
[ "0.6486049", "0.6296623", "0.62385464", "0.623668", "0.623668", "0.623668", "0.6227426", "0.6227426", "0.6227426", "0.6227426", "0.6227426", "0.6120024", "0.61194295", "0.61194295", "0.61194295", "0.61194295", "0.61194295", "0.61194295", "0.61194295", "0.61194295", "0.6119429...
0.0
-1
DROPDOWN PLUGIN DEFINITION ==========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.dropdown') if (!data) $this.data('bs.dropdown', (data = new Dropdown(this))) if (typeof option == 'string') data[option].call($this) }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.dropdown');if(!data)$this.data('bs.dropdown',data=new Dropdown(this));if(typeof option=='string')data[option].call($this);});}", "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data...
[ "0.68540645", "0.68540645", "0.65411085", "0.6346961", "0.6313743", "0.6313743", "0.6313743", "0.6313743", "0.6313743", "0.6296091", "0.6296091", "0.6296091", "0.6296091", "0.6296091", "0.6273755", "0.61702543", "0.61254305", "0.6115975", "0.6115975", "0.607889", "0.606168", ...
0.0
-1
MODAL PLUGIN DEFINITION =======================
function Plugin(option, _relatedTarget) { return this.each(function () { var $this = $(this) var data = $this.data('bs.modal') var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option) if (!data) $this.data('bs.modal', (data = new Modal(this, options...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option,_relatedTarget){return this.each(function(){var $this=$(this);var data=$this.data('bs.modal');var options=$.extend({},Modal.DEFAULTS,$this.data(),(typeof option==='undefined'?'undefined':_typeof(option))=='object'&&option);if(!data)$this.data('bs.modal',data=new Modal(this,options));if(typeo...
[ "0.76139903", "0.76115245", "0.70646596", "0.6972817", "0.6972817", "0.6972817", "0.6972817", "0.6972817", "0.69641304", "0.6953349", "0.6953349", "0.6953349", "0.6953349", "0.6953349", "0.69410294", "0.6926216", "0.6868749", "0.6868749", "0.6868749", "0.6868749", "0.6868749"...
0.0
-1
TOOLTIP PLUGIN DEFINITION =========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.tooltip') var options = typeof option == 'object' && option if (!data && /destroy|hide/.test(option)) return if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_addTooltips() {\n $(this.el.querySelectorAll('[title]')).tooltip({\n delay: { show: 500, hide: 0 }\n });\n }", "function initInstanceInfoTooltip() {\n jQuery('#instance-tooltip').tooltip();\n}", "get tooltip() {}", "function tooltips() {\r\n\t$('.tooltip-link')...
[ "0.7193489", "0.7177543", "0.71230096", "0.7107687", "0.7008811", "0.69535863", "0.6937391", "0.6877154", "0.685422", "0.68206614", "0.6799643", "0.6799365", "0.6754513", "0.6752117", "0.6705143", "0.6687539", "0.6659539", "0.66462636", "0.6641098", "0.66409045", "0.66404915"...
0.0
-1
POPOVER PLUGIN DEFINITION =========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.popover') var options = typeof option == 'object' && option if (!data && /destroy|hide/.test(option)) return if (!data) $this.data('bs.popover', (data = new Popover(this, option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function PopoverConfig() { }", "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.popover');var options=(typeof option==='undefined'?'undefined':_typeof(option))=='object'&&option;if(!data&&/destroy|hide/.test(option))return;if(!data)$this.data('bs.popover',data=new Po...
[ "0.65172714", "0.6155215", "0.614206", "0.60616994", "0.6005223", "0.59905416", "0.59692305", "0.58698756", "0.58214915", "0.58214915", "0.5795073", "0.5791303", "0.5788668", "0.57536405", "0.5745262", "0.572578", "0.5721664", "0.57004213", "0.5683987", "0.5673775", "0.564506...
0.0
-1
SCROLLSPY CLASS DEFINITION ==========================
function ScrollSpy(element, options) { this.$body = $(document.body) this.$scrollElement = $(element).is(document.body) ? $(window) : $(element) this.options = $.extend({}, ScrollSpy.DEFAULTS, options) this.selector = (this.options.target || '') + ' .nav li > a' this.offsets ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set scrolling(scrolling) {\n this._scrolling = scrolling;\n }", "function ScrollPosition() {}", "constructor() {\n this.instance = createScrollBar();\n }", "get scrollTarget(){return this.$.scrollable}", "constructor(props){\n super(props);\n this.state = {\n ...
[ "0.6424849", "0.6409387", "0.63328534", "0.6303255", "0.62154484", "0.6214183", "0.6214183", "0.6214183", "0.6214183", "0.6203554", "0.6202512", "0.61928904", "0.61734974", "0.6135548", "0.6109564", "0.6094813", "0.6077772", "0.6066652", "0.6066099", "0.6064882", "0.6058574",...
0.0
-1
SCROLLSPY PLUGIN DEFINITION ===========================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.scrollspy') var options = typeof option == 'object' && option if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options))) if (typeof option == 'string') data[op...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.scrollspy');var options=(typeof option==='undefined'?'undefined':_typeof(option))=='object'&&option;if(!data)$this.data('bs.scrollspy',data=new ScrollSpy(this,options));if(typeof option=='string')data[option]();});}", "...
[ "0.6855755", "0.68373764", "0.6573799", "0.647004", "0.63559544", "0.63071066", "0.6285276", "0.6272792", "0.62671083", "0.61943835", "0.61943835", "0.61943835", "0.61943835", "0.61841965", "0.6171709", "0.6162518", "0.6158663", "0.6158663", "0.6158663", "0.6158663", "0.61586...
0.0
-1
TAB PLUGIN DEFINITION =====================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.tab') if (!data) $this.data('bs.tab', (data = new Tab(this))) if (typeof option == 'string') data[option]() }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.tab');if(!data)$this.data('bs.tab',data=new Tab(this));if(typeof option=='string')data[option]();});}", "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.tab');if(!data)$this...
[ "0.74222374", "0.74222374", "0.692559", "0.68413377", "0.68389773", "0.68262935", "0.667987", "0.667987", "0.667987", "0.667987", "0.66649354", "0.6643321", "0.6643321", "0.6643321", "0.6643321", "0.6643321", "0.66032135", "0.6584301", "0.65660053", "0.6557222", "0.65411276",...
0.0
-1
AFFIX PLUGIN DEFINITION =======================
function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.affix') var options = typeof option == 'object' && option if (!data) $this.data('bs.affix', (data = new Affix(this, options))) if (typeof option == 'string') data[option]() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.affix');var options=(typeof option==='undefined'?'undefined':_typeof(option))=='object'&&option;if(!data)$this.data('bs.affix',data=new Affix(this,options));if(typeof option=='string')data[option]();});}", "function Plu...
[ "0.64133567", "0.6395302", "0.5915419", "0.5915419", "0.5915419", "0.5915419", "0.5908705", "0.58645165", "0.58645165", "0.5859996", "0.58575773", "0.58575773", "0.58575773", "0.58575773", "0.58575773", "0.58318794", "0.5786335", "0.57438296" ]
0.0
-1
class helper functions from bonzo
function classReg( className ) { return new RegExp("(^|\\s+)" + className + "(\\s+|$)"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private public function m246() {}", "function SuperclassBare() {}", "function SuperclassBare() {}", "function HelperConstructor() {}", "obtain(){}", "function _beeswarm () {} // constructor ???", "function hobbitPrototype(){}", "function Bevy() {}", "transient protected internal function m189...
[ "0.60319066", "0.6022029", "0.6022029", "0.6014516", "0.60002595", "0.59537476", "0.5953545", "0.5953179", "0.59082144", "0.5897942", "0.5897942", "0.5887017", "0.58402693", "0.58402693", "0.58402693", "0.58402693", "0.58401567", "0.5781125", "0.5775814", "0.57679325", "0.576...
0.0
-1
jquery.mb.YTPlayer 08122015 _ jquery.mb.components
function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger("YTAPIReady"))}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function thememascot_YTPlayer() {\n $(\".player\").mb_YTPlayer();\n }", "function videoPlayer() {\n if ($(\".playerVideo\").length>0) { //If there are video backgrounds\n $(\".playerVideo\").mb_YTPlayer();\n jQuery('.playerVideo').on(\"YTPPause\",function(){\n jQuery('.play-video').removeCl...
[ "0.8282406", "0.6869321", "0.6671119", "0.6451713", "0.6361542", "0.6245815", "0.6240692", "0.6186604", "0.61855537", "0.61498404", "0.61498404", "0.61498404", "0.60824144", "0.6076925", "0.6046828", "0.60325813", "0.60295856", "0.6024306", "0.60240203", "0.60202324", "0.5996...
0.62595946
18
(Internal) converts a percentage (`0..1`) to a bar translateX percentage (`100%..0%`).
function toBarPerc(n) { return (-1 + n) * 100; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function barXFunc (d, i) { return (i * barwidth)+\"%\" ; }", "function xValFromPct(percent) {\n return percent * canvas.width / 100;\n}", "function toBarPerc(n) {\nreturn (-1 + n) * 100;\n}", "function pctFromXVal(xValue) {\n return xValue * 100 / canvas.width;\n}", "setPercentage(percentage) {\n ...
[ "0.6634575", "0.653026", "0.6516677", "0.6515595", "0.6494832", "0.64742875", "0.64114827", "0.6394538", "0.6394538", "0.6394538", "0.6394538", "0.6394538", "0.6394538", "0.6376479", "0.6370016", "0.6367201", "0.6324211", "0.6299756", "0.6299756", "0.6299756", "0.6299756", ...
0.62685996
62
(Internal) returns the correct CSS for changing the bar's position given an n percentage, and speed and ease from Settings
function barPositionCSS(n, speed, ease) { var barCSS; if (Settings.positionUsing === 'translate3d') { barCSS = { transform: 'translate3d('+toBarPerc(n)+'%,0,0)' }; } else if (Settings.positionUsing === 'translate') { barCSS = { transform: 'translate('+toBarPerc(n)+'%,0)'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function barPositionCSS(n, speed, ease) {\nvar barCSS;\nif (Settings.positionUsing === 'translate3d') {\nbarCSS = { transform: 'translate3d('+toBarPerc(n)+'%,0,0)' };\n} else if (Settings.positionUsing === 'translate') {\nbarCSS = { transform: 'translate('+toBarPerc(n)+'%,0)' };\n} else {\nbarCSS = { 'margin-left'...
[ "0.8441872", "0.84027517", "0.8358869", "0.8357924", "0.8357924", "0.8348649", "0.83140725", "0.83140725", "0.83140725", "0.83140725", "0.83140725", "0.83140725", "0.83140725", "0.83140725", "0.83140725", "0.83140725", "0.83140725", "0.83140725", "0.83140725", "0.83140725", "...
0.8310235
42
(Internal) Determines if an element or space separated list of class names contains a class name.
function hasClass(element, name) { var list = typeof element == 'string' ? element : classList(element); return list.indexOf(' ' + name + ' ') >= 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hasClass(element, name) {\n var list = typeof element == 'string' ? element : classList(element);\n return list.indexOf(' ' + name + ' ') >= 0;\n }", "function hasClass(element, name) {\n var list = typeof element == 'string' ? element : classList(element);\n return list.indexOf(' ' + name ...
[ "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387", "0.83769387"...
0.83354473
40
(Internal) Adds a class to an element.
function addClass(element, name) { var oldList = classList(element), newList = oldList + name; if (hasClass(oldList, name)) return; // Trim the opening space. element.className = newList.substring(1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addClass(element, classname) {\n\tvar classes = getClassList(element);\n\tif (indexOf(classname, classes) < 0) {\n\t\tclasses[classes.length] = classname;\n\t\tsetClassList(element,classes);\n\t}\n}", "function addClass (element, classname) {\n if (element.classList) {\n element.classList.add(cl...
[ "0.78299415", "0.7782038", "0.7720489", "0.7687421", "0.7636006", "0.7607306", "0.7601206", "0.7600029", "0.7573755", "0.7533114", "0.75205976", "0.7503628", "0.74907476", "0.74856645", "0.74856645", "0.7448068", "0.74151844", "0.74108887", "0.74021417", "0.7388065", "0.73799...
0.0
-1
(Internal) Removes a class from an element.
function removeClass(element, name) { var oldList = classList(element), newList; if (!hasClass(element, name)) return; // Replace the class name. newList = oldList.replace(' ' + name + ' ', ' '); // Trim the opening and closing spaces. element.className = n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeClass(element, classname) {\n\tvar classes = getClassList(element);\n\tvar index = indexOf(classname,classes);\n\tif (index >= 0) {\n\t\tclasses.splice(index,1);\n\t\tsetClassList(element, classes);\n\t}\n}", "function removeClass(_element, _class) {\n\t// variables\n\tvar classExists = false, // ...
[ "0.8250715", "0.81225693", "0.8054095", "0.8019471", "0.8018517", "0.8002591", "0.79266113", "0.79038703", "0.78412026", "0.7821953", "0.78212357", "0.77817875", "0.77571857", "0.7691068", "0.76683384", "0.7624005", "0.76120305", "0.7611323", "0.7599885", "0.7593325", "0.7560...
0.74554586
67
(Internal) Gets a space separated list of the class names on the element. The list is wrapped with a single space on each end to facilitate finding matches within the list.
function classList(element) { return (' ' + (element && element.className || '') + ' ').replace(/\s+/gi, ' '); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function classList(element) {\n\t return (' ' + (element.className || '') + ' ').replace(/\\s+/gi, ' ');\n\t }", "function classList(element) {\n\t return (' ' + (element.className || '') + ' ').replace(/\\s+/gi, ' ');\n\t }", "function classList(element) {\n\t return (' ' + (element.className || ''...
[ "0.821456", "0.821456", "0.821456", "0.821456", "0.8207455", "0.8207455", "0.8207455", "0.8207455", "0.8207455", "0.8207455", "0.8207455", "0.8207455", "0.8207455", "0.8207455", "0.8207455", "0.8207455", "0.8207455", "0.8207455", "0.8207455", "0.8207455", "0.8207455", "0.82...
0.8087959
40
(Internal) Removes an element from the DOM.
function removeElement(element) { element && element.parentNode && element.parentNode.removeChild(element); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "removeElement() {\n this.el.parentNode.removeChild(this.el);\n }", "static deleteDomElement(element) {\n element.parentNode.removeChild(element);\n }", "function removeElement(elem){ if (elem) elem.parentNode.removeChild(elem) }", "function removeElement(elem){ if (elem) elem.parentNode.remove...
[ "0.77584904", "0.74974805", "0.74303335", "0.74303335", "0.7335703", "0.73067486", "0.72759837", "0.7229311", "0.7201782", "0.7103265", "0.707116", "0.7066715", "0.70622224", "0.70549893", "0.70502526", "0.6952093", "0.6942755", "0.6924823", "0.6924823", "0.6924823", "0.69248...
0.6842649
63
/ Author : Vincent Garreau vincentgarreau.com / MIT license: / Demo / Generator : vincentgarreau.com/particles.js / GitHub : github.com/VincentGarreau/particles.js / How to use? : Check the GitHub README / v2.0.0
function hexToRgb(e){var a=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(a,function(e,a,t,i){return a+a+t+t+i+i});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function launchParticlesJS(e, a) {\n\t\n function i() {\n pJS.fn.canvasInit(), pJS.fn.canvasSize(), pJS.fn.canvasPaint(), pJS.fn.particlesCreate(), pJS.fn.particlesDraw(), pJS.fn.densityAuto()\n }\n\n function t() {\n pJS.fn.particlesDraw(), pJS.fn.requestAnimFrame = requestAnimFrame(t)\n ...
[ "0.7848541", "0.782889", "0.78145266", "0.76975167", "0.7522861", "0.75136113", "0.7495985", "0.7293152", "0.7287116", "0.7134693", "0.71218127", "0.7116376", "0.710123", "0.7055045", "0.692371", "0.68953294", "0.6886487", "0.68744683", "0.684911", "0.68446994", "0.68390644",...
0.0
-1
function for adding/overriding defaults
function setDefaults(d) { $.extend(true, defaults, d); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "defaults () {\n }", "function setDefaults(src, dst) {\n if (src === undefined || isEmpty(src)) {\n throw new Error('No DEFAULTS passed');\n }\n if (dst === undefined) {\n throw new Error('No dst passed');\n }\n\n // Remember defaults for future reference\n DEFAULTS = src;\n\n // H...
[ "0.6910572", "0.6873537", "0.68103474", "0.6782485", "0.6720342", "0.6668518", "0.6658312", "0.6632388", "0.6632388", "0.66272813", "0.6624439", "0.6557122", "0.6526781", "0.65229905", "0.6458429", "0.6458429", "0.6458429", "0.643058", "0.64103925", "0.64103925", "0.64103925"...
0.6897513
3
called when we know the calendar couldn't be rendered when it was initialized, but we think it's ready now
function lateRender() { setTimeout(function() { // IE7 needs this so dimensions are calculated correctly if (!currentView.start && bodyVisible()) { // !currentView.start makes sure this never happens more than once renderView(); } },0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function eventsInitialRender() {\n //remove selection if it's there\n localStorage.setItem(\"mainContentCalendarSelectedCrn\", \"\");\n\n //manageClasses page\n if (document.getElementById(\"mc_manageClasses_input_crn\")) {\n manageClasses_eventsInitialRender();\n }\n\n //assign professors...
[ "0.66744435", "0.65319526", "0.6499032", "0.6388948", "0.63815415", "0.6370127", "0.63649887", "0.63358057", "0.63354", "0.62616915", "0.6218665", "0.6193818", "0.6163489", "0.6140991", "0.61245406", "0.6047739", "0.6023274", "0.6016833", "0.6012854", "0.5971699", "0.5966747"...
0.5775277
55
Event Fetching/Rendering TODO: going forward, most of this stuff should be directly handled by the view
function refetchEvents() { // can be called as an API method clearEvents(); fetchAndRenderEvents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function RenderEvent() {}", "getEventsToRender() {}", "function refetchEvents() { // can be called as an API method\n\t\t\tfetchAndRenderEvents();\n\t\t}", "function refetchEvents() { // can be called as an API method\n\t\tfetchAndRenderEvents();\n\t}", "function reportEventChange() {\n renderEv...
[ "0.7300794", "0.72278357", "0.69586515", "0.68858296", "0.674178", "0.6732057", "0.6712804", "0.65398294", "0.6511364", "0.64916503", "0.6435609", "0.6435609", "0.6435609", "0.6412965", "0.6412965", "0.6376731", "0.6363271", "0.63522875", "0.6347713", "0.6347713", "0.6238358"...
0.62818694
24
called when event data arrives
function reportEvents(_events) { events = _events; renderEvents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onEvent(type, data) {\n eventsBuffer.push({type: type, data: data});\n }", "listenForData() {\n this.socket.on(EVENT_DATA, data => this.handleData(data))\n }", "function onData(event) {\n\t\tif(event.getSubject() != '/pushlet/ping') {\n\t\t\tif(event.getSubject() == 'system_online') {\n\t\...
[ "0.7053939", "0.698756", "0.6891755", "0.6792752", "0.6653419", "0.66346455", "0.6583227", "0.6580086", "0.65605295", "0.6551606", "0.6543556", "0.6535417", "0.65346986", "0.64739954", "0.6464949", "0.64416265", "0.644008", "0.64184475", "0.64174485", "0.6399649", "0.6399649"...
0.0
-1
called when a single event's data has been changed
function reportEventChange(eventID) { rerenderEvents(eventID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onDataChange() {}", "notifyDataChanged() {\n this.hasDataChangesProperty = true;\n this.dataChanged.raiseEvent();\n }", "function changeDataHandler(event) {\n\n const divid = document.getElementById(event.target.id);\n //needs to be a constant value or works off resized values\n divid...
[ "0.7141103", "0.70413023", "0.6659295", "0.66524935", "0.6592736", "0.65476274", "0.653258", "0.6525979", "0.6517237", "0.6468771", "0.6407931", "0.637106", "0.6322176", "0.6297184", "0.6294713", "0.62893534", "0.6286527", "0.62627655", "0.62482697", "0.62353003", "0.6213826"...
0.0
-1
Date Formatting TODO: use same function formatDate(date, [date2], format, [options])
function formatDate(date, format, options) { return formatDates(date, null, format, options); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function formatDate(date, format){\n if(!date){\n return '0000-00-00';\n }\n var dd = date.substring(0, 2);\n var mm = date.substring(3, 5);\n var yy = date.substring(6);\n if (format == 'dmy') {\n return dd + '-' + mm + '-' + yy;\n } else {\n...
[ "0.7011916", "0.6938283", "0.69356686", "0.69114083", "0.6881305", "0.6881305", "0.6881305", "0.6881305", "0.6881305", "0.68802106", "0.68372923", "0.6758324", "0.6755041", "0.67441195", "0.66694796", "0.66583085", "0.66535705", "0.6637386", "0.66322434", "0.66077965", "0.657...
0.7590923
2
thanks jQuery UI ( Set as calculateWeek to determine the week of the year based on the ISO 8601 definition. `date` the date to get the week for `number` the number of the week within the year that contains this date
function iso8601Week(date) { var time; var checkDate = new Date(date.getTime()); // Find Thursday of this week starting on Monday checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7)); time = checkDate.getTime(); checkDate.setMonth(0); // Compare with Jan 1 checkDate.setDate(1); return Math.f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "w (date) {\n return getWeekOfYear(date)\n }", "function _weekNumber(date) {\r\n var ytd = toNumber(date.strftime(\"%j\"));\r\n var week = Math.floor(ytd/7);\r\n if (new Date(date.getFullYear(), 0, 1).getDay() < 4) {\r\n week++;\r\n }\r\n return week;\r\n}", "function getWeekNumber(date) {\r va...
[ "0.77510434", "0.7291451", "0.72108567", "0.70499176", "0.70448726", "0.70278203", "0.6905473", "0.6905473", "0.68279636", "0.667692", "0.6550621", "0.6446773", "0.64259815", "0.63979447", "0.63974845", "0.63954806", "0.6385833", "0.6383158", "0.6341888", "0.6330028", "0.6264...
0.6549959
13
Misc Utils TODO: arraySlice TODO: isFunction, grep ?
function noop() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ArrayUtils() {}", "function sliceMe(tempArr,start,end){\r\n return tempArr.slice(start,end);\r\n\r\n }", "function slice$1$1(thing) {\n\t return Array.prototype.slice.call(thing);\n\t}", "function UnifyingSlice() {\n}", "function s...
[ "0.69116557", "0.68759614", "0.67719775", "0.6699227", "0.66638947", "0.666202", "0.666202", "0.65691245", "0.6490549", "0.6482113", "0.64611834", "0.6358502", "0.6290429", "0.62847185", "0.61822796", "0.61378944", "0.61022407", "0.6000974", "0.5965267", "0.59278035", "0.5924...
0.0
-1
Day clicking and binding
function dayBind(days) { days.click(dayClick) .mousedown(daySelectionMousedown); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dayBind(days) {\n\t\tdays.click(dayClick).mousedown(daySelectionMousedown);\n\t}", "function dayClick(date, jsEvent, view)\n {\n\n alert('Clicked on: ' + date.format());\n\n // alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);\n\n // alert('Current view: ' + view.name...
[ "0.7444935", "0.70842844", "0.67582387", "0.6702769", "0.6702769", "0.6702769", "0.6702769", "0.6702769", "0.6647051", "0.6600649", "0.657175", "0.6562877", "0.6552059", "0.6375962", "0.630387", "0.629875", "0.628525", "0.6282149", "0.6250555", "0.622633", "0.61449313", "0....
0.733706
5
Semitransparent Overlay Helpers TODO: should be consolidated with AgendaView's methods
function renderDayOverlay(overlayStart, overlayEnd, refreshCoordinateGrid) { // overlayEnd is exclusive if (refreshCoordinateGrid) { coordinateGrid.build(); } var segments = rangeToSegments(overlayStart, overlayEnd); for (var i=0; i<segments.length; i++) { var segment = segments[i]; dayBind( ren...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "showTransparentOverlay() {\n this.$transparentOverlay.show();\n }", "'transparent'(callback) {\n\t\tthis.style('opacity', 0, callback);\n\t}", "function overlay() {\n sketch.strokeWeight(1);\n sketch.stroke(0, 0, 255, 75);\n sketch.fill(0, 0, 255, 75);\n sketch.rectMode(sketch.C...
[ "0.6759067", "0.6505852", "0.6354351", "0.6164673", "0.6147143", "0.60848916", "0.59790725", "0.59704983", "0.59334975", "0.5907663", "0.58938473", "0.5891462", "0.5880358", "0.5878456", "0.58520865", "0.58475906", "0.5805462", "0.57767206", "0.5759843", "0.57575995", "0.5718...
0.0
-1
TODO: make it work in quirks mode (event corners, allday height) TODO: test liquid width, especially in IE6
function AgendaView(element, calendar, viewName) { var t = this; // exports t.renderAgenda = renderAgenda; t.setWidth = setWidth; t.setHeight = setHeight; t.afterRender = afterRender; t.defaultEventEnd = defaultEventEnd; t.timePosition = timePosition; t.getIsCellAllDay = getIsCellAllDay; t.allDayRow = get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function determineWidthHandling(event) {\n\t// if(DEBUG) console.debug(\"WidthHandler called on \",event.target.tagName, \" with a width of \", event.target.width);\n\tvar tempMaxWidth = 800; // failsafe value\n\tif(episodePage) tempMaxWidth = 400;\n\tif(forumPage) tempMaxWidth = 790;\n\tif(event.target.width > te...
[ "0.61933917", "0.59039026", "0.5895142", "0.5851671", "0.58482796", "0.5833728", "0.5830452", "0.5791168", "0.5780239", "0.57721794", "0.57398415", "0.57338953", "0.57245594", "0.5713917", "0.5707415", "0.5703676", "0.5697372", "0.56894666", "0.5664846", "0.5658437", "0.56526...
0.0
-1
TODO: datadate on the cells / Dimensions
function setHeight(height) { if (height === undefined) { height = viewHeight; } viewHeight = height; slotTopCache = {}; var headHeight = dayBody.position().top; var allDayHeight = slotScroller.position().top; // including divider var bodyHeight = Math.min( // total body height, including borders h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "data() {\n return this.cells().map((n) => n ? n.valueOf() : undefined );\n }", "function initCells(){\n\t\tvar days = ['Monday', 'Tuesday', 'Wednesday', \n\t\t\t'Thursday', 'Friday', 'Saturday', 'Sunday'];\n\t\tvar tableRows = document.getElementById('schedTable').children[0].children;\n\t\tvar numericClass ...
[ "0.57542753", "0.5640068", "0.5616252", "0.5563565", "0.5548714", "0.5525359", "0.5512147", "0.5504758", "0.5503745", "0.54742604", "0.54708624", "0.54515654", "0.5445766", "0.54416", "0.54416", "0.54416", "0.54416", "0.54416", "0.5440499", "0.54335624", "0.5408038", "0.536...
0.0
-1
+1 for the border
function scroll() { slotScroller.scrollTop(top); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "drawBorder() {\n }", "function borderUp(x) {\r\n x.style.borderLeftStyle = 'solid';\r\n x.style.borderLeftWidth = '5px';\r\n x.style.borderLeftColor = '#B23A48';\r\n }", "function borderThicken(current,next) {\n\tcurrent.style.border = '1px solid gray';\n\tnext.style.border = '2px solid...
[ "0.7081219", "0.67396533", "0.67341596", "0.66817605", "0.6648171", "0.66328096", "0.6619604", "0.66070867", "0.65042734", "0.6339574", "0.63072073", "0.61948496", "0.6168479", "0.6079956", "0.6057421", "0.605224", "0.6040781", "0.59676975", "0.5918491", "0.5909045", "0.59053...
0.0
-1
Slot/Day clicking and binding
function dayBind(cells) { cells.click(slotClick) .mousedown(daySelectionMousedown); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onSelectSlot(day) {\n setDayStartDate(day.start)\n setDayEndDate(day.end)\n setShowDayModal(true);\n console.log(\"day clicked: \", day.start)\n }", "function dayBind(days) {\n\t\tdays.click(dayClick).mousedown(daySelectionMousedown);\n\t}", "function dayClick(date, jsEv...
[ "0.7200254", "0.650521", "0.64675575", "0.6446434", "0.6393526", "0.6393526", "0.6393526", "0.6393526", "0.6393526", "0.62343496", "0.61392915", "0.61207867", "0.6093413", "0.6082524", "0.6075822", "0.592636", "0.5912174", "0.58134776", "0.57883734", "0.5776719", "0.5771247",...
0.66175014
5
Semitransparent Overlay Helpers TODO: should be consolidated with BasicView's methods
function renderDayOverlay(overlayStart, overlayEnd, refreshCoordinateGrid) { // overlayEnd is exclusive if (refreshCoordinateGrid) { coordinateGrid.build(); } var segments = rangeToSegments(overlayStart, overlayEnd); for (var i=0; i<segments.length; i++) { var segment = segments[i]; dayBind( ren...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "showTransparentOverlay() {\n this.$transparentOverlay.show();\n }", "'transparent'(callback) {\n\t\tthis.style('opacity', 0, callback);\n\t}", "function overlay() {\n sketch.strokeWeight(1);\n sketch.stroke(0, 0, 255, 75);\n sketch.fill(0, 0, 255, 75);\n sketch.rectMode(sketch.C...
[ "0.69198173", "0.6624661", "0.6314734", "0.61011785", "0.59595096", "0.5946307", "0.590281", "0.58859265", "0.5758364", "0.5752355", "0.5729949", "0.5728219", "0.5715331", "0.56984097", "0.56780523", "0.56765884", "0.56615096", "0.5638198", "0.56338674", "0.56320703", "0.5628...
0.0
-1
get the Y coordinate of the given time on the given day (both Date objects)
function timePosition(day, time) { // both date objects. day holds 00:00 of current day day = cloneDate(day, true); if (time < addMinutes(cloneDate(day), minMinute)) { return 0; } if (time >= addMinutes(cloneDate(day), maxMinute)) { return slotTable.height(); } var slotMinutes = opt('slotMinutes'), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTime(time, day) {\n time = Math.round((time + 0.1) * 100) / 100;\n\n if (time >= day) {\n return 0;\n }\n else {\n return time;\n }\n }", "function getDateCoordinate(date, urgent_axis) {\n var today = new Date();\n // Einteilung Tage pro Phase\n ONEMONTH = [1, 4, 7, 30];\...
[ "0.6094791", "0.58830076", "0.58711404", "0.56664395", "0.54493135", "0.53300303", "0.5313581", "0.52937806", "0.5275706", "0.5254338", "0.5244153", "0.523032", "0.52238435", "0.5205942", "0.5201849", "0.51700896", "0.5160638", "0.51559776", "0.514109", "0.514109", "0.514109"...
0.5749793
5
renders events in the 'time slots' at the bottom TODO: when we refactor this, when user returns `false` eventRender, don't have empty space TODO: refactor will include using pixels to detect collisions instead of dates (handy for seg cmp)
function renderSlotSegs(segs, modifiedEventId) { var i, segCnt=segs.length, seg, event, top, bottom, columnLeft, columnRight, columnWidth, width, left, right, html = '', eventElements, eventElement, triggerRes, titleElement, height, slotSegmentContainer = getSlotSegme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function renderEvents() {\n var totalPercent = 100,\n currentEvent,\n curCol,\n width,\n height,\n leftOffset,\n eventText,\n i,\n j;\n \n // empty container before adding new events\n $el.empty();\n \n // go through all columns\n for (i=...
[ "0.7399189", "0.6763185", "0.6678453", "0.66499037", "0.6501285", "0.64949363", "0.6484625", "0.6452657", "0.64480245", "0.644253", "0.64420503", "0.64121485", "0.6396055", "0.6376006", "0.63710254", "0.6348089", "0.63380533", "0.6326206", "0.62827504", "0.62510455", "0.62120...
0.6236381
21
Dragging when event starts out FULLDAY overrides DayEventRenderer's version because it needs to account for dragging elements to and from the slot area.
function draggableDayEvent(event, eventElement, seg) { var isStart = seg.isStart; var origWidth; var revert; var allDay = true; var dayDelta; var hoverListener = getHoverListener(); var colWidth = getColWidth(); var snapHeight = getSnapHeight(); var snapMinutes = getSnapMinutes(); var minMinute = ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function draggableDayEvent(event, eventElement, seg) {\n\t\tvar isStart = seg.isStart;\n\t\tvar origWidth;\n\t\tvar revert;\n\t\tvar allDay = true;\n\t\tvar dayDelta;\n\n\t\tvar hoverListener = getHoverListener();\n\t\tvar colWidth = getColWidth();\n\t\tvar minTime = getMinTime();\n\t\tvar slotDuration = getSlotDu...
[ "0.7331122", "0.7326114", "0.73174757", "0.6537109", "0.6465477", "0.620627", "0.620627", "0.620627", "0.6159266", "0.614866", "0.6138198", "0.5808732", "0.5784812", "0.57447594", "0.5723502", "0.57165945", "0.57009405", "0.570037", "0.56127375", "0.5604258", "0.5587024", "...
0.74015343
2
when event starts out IN TIMESLOTS
function draggableSlotEvent(event, eventElement, timeElement) { var coordinateGrid = t.getCoordinateGrid(); var colCnt = getColCnt(); var colWidth = getColWidth(); var snapHeight = getSnapHeight(); var snapMinutes = getSnapMinutes(); // states var origPosition; // original position of the element, not th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onEventTimer() {\n triggerEvents(inbandEvents);\n triggerEvents(inlineEvents);\n removeEvents();\n }", "ontimeout() {}", "function endEvent(){}", "function battleStartEventAdding() {\n if (store.getState().lastAction == 'BATTLE_ON') {\n setTimeout(function(){\n ...
[ "0.65060663", "0.63519084", "0.63168395", "0.6277082", "0.6240648", "0.6177337", "0.6109659", "0.60271233", "0.6018678", "0.60111", "0.5982072", "0.5961736", "0.58660704", "0.58394873", "0.58146864", "0.57891583", "0.5785712", "0.5761152", "0.5758484", "0.575002", "0.57259446...
0.0
-1
Agenda Event Segment Utilities Sets the seg.backwardCoord and seg.forwardCoord on each segment and returns a new list in the order they should be placed into the DOM (an implicit zindex).
function placeSlotSegs(segs) { var levels = buildSlotSegLevels(segs); var level0 = levels[0]; var i; computeForwardSlotSegs(levels); if (level0) { for (i=0; i<level0.length; i++) { computeSlotSegPressures(level0[i]); } for (i=0; i<level0.length; i++) { computeSlotSegCoords(level0[i], 0, 0); } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get excludeCollinear(){\n\t\tlet list = this.segList2D;\n\t\tlet newlist = [];\n\t\tfor (let i=0; i<list.length; i++){\n\t\t\tlet thisseg = list[i];\n\t\t\tlet x0 = thisseg.a[0];\n\t\t\tlet y0 = thisseg.a[1];\n\t\t\tlet x1 = thisseg.b[0];\n\t\t\tlet y1 = thisseg.b[1];\n\t\t\tlet nextseg\n\t\t\tif (i === list.lengt...
[ "0.56722146", "0.5662437", "0.5662437", "0.55659854", "0.55659854", "0.55659854", "0.54511935", "0.5445217", "0.5445217", "0.5445217", "0.5445217", "0.5445217", "0.5394082", "0.5390246", "0.53804225", "0.5335339", "0.52504873", "0.52242315", "0.5220978", "0.5220978", "0.52209...
0.0
-1
Builds an array of segments "levels". The first level will be the leftmost tier of segments if the calendar is lefttoright, or the rightmost if the calendar is righttoleft.
function buildSlotSegLevels(segs) { var levels = []; var i, seg; var j; for (i=0; i<segs.length; i++) { seg = segs[i]; // go through all the levels and stop on the first level where there are no collisions for (j=0; j<levels.length; j++) { if (!computeSlotSegCollisions(seg, levels[j]).length) { break...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildSlotSegLevels(segs) {\n var levels = [];\n var i;\n var seg;\n var j;\n\n for (i = 0; i < segs.length; i++) {\n seg = segs[i]; // go through all the levels and stop on the first level where there are no collisions\n\n for (j = 0; j < levels.length;...
[ "0.6903213", "0.68410707", "0.6753741", "0.6747528", "0.67446643", "0.67446643", "0.67446643", "0.6726673", "0.6699943", "0.6699943", "0.6699943", "0.6699943", "0.6699943", "0.66965276", "0.66965276", "0.66965276", "0.66965276", "0.66965276", "0.66965276", "0.66965276", "0.66...
0.66932213
25
For every segment, figure out the other segments that are in subsequent levels that also occupy the same vertical space. Accumulate in seg.forwardSegs
function computeForwardSlotSegs(levels) { var i, level; var j, seg; var k; for (i=0; i<levels.length; i++) { level = levels[i]; for (j=0; j<level.length; j++) { seg = level[j]; seg.forwardSegs = []; for (k=i+1; k<levels.length; k++) { computeSlotSegCollisions(seg, levels[k], seg.forwardSegs); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function computeSlotSegPressures(seg){var forwardSegs=seg.forwardSegs;var forwardPressure=0;var i;var forwardSeg;if(seg.forwardPressure===undefined){// not already computed\nfor(i=0;i<forwardSegs.length;i++){forwardSeg=forwardSegs[i];// figure out the child's maximum forward path\ncomputeSlotSegPressures(forwardSe...
[ "0.71595144", "0.69843346", "0.6752601", "0.67451876", "0.67451876", "0.67451876", "0.67421573", "0.6741833", "0.6719972", "0.6713987", "0.6713987", "0.6713987", "0.6713987", "0.6713987", "0.6678939", "0.6660917", "0.6505879", "0.64196306", "0.6357681", "0.6334381", "0.627786...
0.66111773
28
Figure out which path forward (via seg.forwardSegs) results in the longest path until the furthest edge is reached. The number of segments in this path will be seg.forwardPressure
function computeSlotSegPressures(seg) { var forwardSegs = seg.forwardSegs; var forwardPressure = 0; var i, forwardSeg; if (seg.forwardPressure === undefined) { // not already computed for (i=0; i<forwardSegs.length; i++) { forwardSeg = forwardSegs[i]; // figure out the child's maximum forward path com...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function computeForwardSlotSegs(levels){var i;var level;var j;var seg;var k;for(i=0;i<levels.length;i++){level=levels[i];for(j=0;j<level.length;j++){seg=level[j];seg.forwardSegs=[];for(k=i+1;k<levels.length;k++){computeSlotSegCollisions(seg,levels[k],seg.forwardSegs);}}}}// Figure out which path forward (via seg.f...
[ "0.6254759", "0.6046006", "0.6044368", "0.597183", "0.5963319", "0.5920369", "0.5920369", "0.5920369", "0.5918157", "0.5918157", "0.5903535", "0.5856561", "0.5856561", "0.5856561", "0.582306", "0.57973975", "0.5732765", "0.5723047", "0.55158246", "0.54787606", "0.53711534", ...
0.5823098
26