This instruction consists of 2 parts:
-
Apply a patch to examine the special project flag.
-
Set a special flag for projects which should run pipelines for every forked PRs.
declare -A channels=( ["mocha1"]="channel1" ["mocha2"]="channel2" ["mocha3"]="channel3") | |
for key in "${!channels[@]}"; do | |
if [ "$key" = "<< parameters.test-name >>" ]; then | |
echo "${channels[$key]}" | |
fi | |
done |
version: '2.1' | |
orbs: | |
slack: circleci/slack@4.2.1 | |
jobs: | |
job1: | |
docker: | |
- image: 'cimg/base:2020.01' | |
steps: |
function waitForElement() { | |
if (!document.querySelector("/* put element selector here */")) { | |
window.requestAnimationFrame(waitForElement); | |
} else { | |
/* put code to fire after element exists here */ | |
} | |
}; |
setInterval(function(){ | |
if(parseInt(timeSpentOnSite/1000) >= 5){ | |
window._vis_opt_queue = window._vis_opt_queue || []; | |
window._vis_opt_queue.push(function() {_vis_opt_goal_conversion(212);}); | |
} | |
if(parseInt(timeSpentOnSite/1000) >= 10){ | |
window._vis_opt_queue = window._vis_opt_queue || []; | |
window._vis_opt_queue.push(function() {_vis_opt_goal_conversion(213);}); | |
} | |
if(parseInt(timeSpentOnSite/1000) >= 20){ |
var scrollPos = window.innerHeight; | |
window.addEventListener('scroll', function(e) { | |
var pos = window.scrollY + window.innerHeight; | |
window._vis_opt_queue = window._vis_opt_queue || []; | |
if (scrollPos < pos) { | |
// down | |
if ((document.querySelector('div.top').getBoundingClientRect().top + window.scrollY) < pos) { | |
window._vis_opt_queue.push(function() { | |
_vis_opt_goal_conversion(200); | |
}); |
// | |
var arrayLocation = []; | |
var arrayArea = []; | |
var arrayTheme = []; | |
$('#g-body').prepend('<select style="display: block;" id="select1"></select><select style="display: block;" id="select2"></select><select style="display: block;" id="select3"></select>'); | |
$('div#plase ul.m-tileLink:eq(0) > li').each(function(i,e){ | |
arrayLocation.push([vwo_$(this).children('a').html(), vwo_$(this).children('a').attr('href')]); | |
}); | |
$('div#plase ul.m-tileLink:eq(1) > li').each(function(i,e){ | |
arrayArea.push([vwo_$(this).children('a').html(), vwo_$(this).children('a').attr('href')]); |
vwo_$('a#severModalBTN, a#selectModalBTN').on('click', function(element) { | |
step2(vwo_$('#select-server input[type*="radio"]').filter(':checked').attr('value')); | |
}); | |
function step2(input) { | |
switch (input) { | |
case '27': | |
isSlimOrNot = true; | |
step3(vwo_$('div.normal').find(':checked').attr('value')); | |
break; |