How to use getType method in Playwright Internal

Best JavaScript code snippet using playwright-internal

dynamic_get.js

Source:dynamic_get.js Github

copy

Full Screen

1/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/2 __ __ _ _____ _ _ __ __ _ _ _3 \ \ / / | | | __ \ | | | | | \/ | | | | | | |4 \ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |5 \ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |6 \ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |7 \/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|8 | | 9 |_| 10/-------------------------------------------------------------------------------------------------------------------------------/11 @version 2.7.x12 @created 30th April, 201513 @package Component Builder14 @subpackage dynamic_get.js15 @author Llewellyn van der Merwe <http://joomlacomponentbuilder.com> 16 @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>17 @copyright Copyright (C) 2015. All Rights Reserved18 @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html 19 20 Builds Complex Joomla Components 21 22/-----------------------------------------------------------------------------------------------------------------------------*/23// Some Global Values24jform_vvvvvzavyu_required = false;25jform_vvvvvzbvyv_required = false;26jform_vvvvvzcvyw_required = false;27jform_vvvvvzdvyx_required = false;28jform_vvvvvzevyy_required = false;29jform_vvvvvzfvyz_required = false;30jform_vvvvvzkvza_required = false;31jform_vvvvvzmvzb_required = false;32jform_vvvvvznvzc_required = false;33jform_vvvvvzpvzd_required = false;34jform_vvvvvzpvze_required = false;35jform_vvvvvzqvzf_required = false;36jform_vvvvvzrvzg_required = false;37jform_vvvvvzsvzh_required = false;38jform_vvvvvzuvzi_required = false;39jform_vvvvvzuvzj_required = false;40jform_vvvvvzuvzk_required = false;41jform_vvvvvzvvzl_required = false;42jform_vvvvvzwvzm_required = false;43jform_vvvvvzxvzn_required = false;44// Initial Script45jQuery(document).ready(function()46{47 var gettype_vvvvvza = jQuery("#jform_gettype").val();48 vvvvvza(gettype_vvvvvza);49 var main_source_vvvvvzb = jQuery("#jform_main_source").val();50 vvvvvzb(main_source_vvvvvzb);51 var main_source_vvvvvzc = jQuery("#jform_main_source").val();52 vvvvvzc(main_source_vvvvvzc);53 var main_source_vvvvvzd = jQuery("#jform_main_source").val();54 vvvvvzd(main_source_vvvvvzd);55 var main_source_vvvvvze = jQuery("#jform_main_source").val();56 vvvvvze(main_source_vvvvvze);57 var addcalculation_vvvvvzf = jQuery("#jform_addcalculation input[type='radio']:checked").val();58 vvvvvzf(addcalculation_vvvvvzf);59 var addcalculation_vvvvvzg = jQuery("#jform_addcalculation input[type='radio']:checked").val();60 var gettype_vvvvvzg = jQuery("#jform_gettype").val();61 vvvvvzg(addcalculation_vvvvvzg,gettype_vvvvvzg);62 var addcalculation_vvvvvzh = jQuery("#jform_addcalculation input[type='radio']:checked").val();63 var gettype_vvvvvzh = jQuery("#jform_gettype").val();64 vvvvvzh(addcalculation_vvvvvzh,gettype_vvvvvzh);65 var main_source_vvvvvzk = jQuery("#jform_main_source").val();66 vvvvvzk(main_source_vvvvvzk);67 var main_source_vvvvvzl = jQuery("#jform_main_source").val();68 vvvvvzl(main_source_vvvvvzl);69 var add_php_before_getitem_vvvvvzm = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();70 var gettype_vvvvvzm = jQuery("#jform_gettype").val();71 vvvvvzm(add_php_before_getitem_vvvvvzm,gettype_vvvvvzm);72 var add_php_after_getitem_vvvvvzn = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();73 var gettype_vvvvvzn = jQuery("#jform_gettype").val();74 vvvvvzn(add_php_after_getitem_vvvvvzn,gettype_vvvvvzn);75 var gettype_vvvvvzp = jQuery("#jform_gettype").val();76 vvvvvzp(gettype_vvvvvzp);77 var add_php_getlistquery_vvvvvzq = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();78 var gettype_vvvvvzq = jQuery("#jform_gettype").val();79 vvvvvzq(add_php_getlistquery_vvvvvzq,gettype_vvvvvzq);80 var add_php_before_getitems_vvvvvzr = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();81 var gettype_vvvvvzr = jQuery("#jform_gettype").val();82 vvvvvzr(add_php_before_getitems_vvvvvzr,gettype_vvvvvzr);83 var add_php_after_getitems_vvvvvzs = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();84 var gettype_vvvvvzs = jQuery("#jform_gettype").val();85 vvvvvzs(add_php_after_getitems_vvvvvzs,gettype_vvvvvzs);86 var gettype_vvvvvzu = jQuery("#jform_gettype").val();87 vvvvvzu(gettype_vvvvvzu);88 var gettype_vvvvvzv = jQuery("#jform_gettype").val();89 vvvvvzv(gettype_vvvvvzv);90 var gettype_vvvvvzw = jQuery("#jform_gettype").val();91 vvvvvzw(gettype_vvvvvzw);92 var gettype_vvvvvzx = jQuery("#jform_gettype").val();93 var add_php_router_parse_vvvvvzx = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();94 vvvvvzx(gettype_vvvvvzx,add_php_router_parse_vvvvvzx);95});96// the vvvvvza function97function vvvvvza(gettype_vvvvvza)98{99 if (isSet(gettype_vvvvvza) && gettype_vvvvvza.constructor !== Array)100 {101 var temp_vvvvvza = gettype_vvvvvza;102 var gettype_vvvvvza = [];103 gettype_vvvvvza.push(temp_vvvvvza);104 }105 else if (!isSet(gettype_vvvvvza))106 {107 var gettype_vvvvvza = [];108 }109 var gettype = gettype_vvvvvza.some(gettype_vvvvvza_SomeFunc);110 // set this function logic111 if (gettype)112 {113 jQuery('#jform_getcustom').closest('.control-group').show();114 if (jform_vvvvvzavyu_required)115 {116 updateFieldRequired('getcustom',0);117 jQuery('#jform_getcustom').prop('required','required');118 jQuery('#jform_getcustom').attr('aria-required',true);119 jQuery('#jform_getcustom').addClass('required');120 jform_vvvvvzavyu_required = false;121 }122 }123 else124 {125 jQuery('#jform_getcustom').closest('.control-group').hide();126 if (!jform_vvvvvzavyu_required)127 {128 updateFieldRequired('getcustom',1);129 jQuery('#jform_getcustom').removeAttr('required');130 jQuery('#jform_getcustom').removeAttr('aria-required');131 jQuery('#jform_getcustom').removeClass('required');132 jform_vvvvvzavyu_required = true;133 }134 }135}136// the vvvvvza Some function137function gettype_vvvvvza_SomeFunc(gettype_vvvvvza)138{139 // set the function logic140 if (gettype_vvvvvza == 3 || gettype_vvvvvza == 4)141 {142 return true;143 }144 return false;145}146// the vvvvvzb function147function vvvvvzb(main_source_vvvvvzb)148{149 if (isSet(main_source_vvvvvzb) && main_source_vvvvvzb.constructor !== Array)150 {151 var temp_vvvvvzb = main_source_vvvvvzb;152 var main_source_vvvvvzb = [];153 main_source_vvvvvzb.push(temp_vvvvvzb);154 }155 else if (!isSet(main_source_vvvvvzb))156 {157 var main_source_vvvvvzb = [];158 }159 var main_source = main_source_vvvvvzb.some(main_source_vvvvvzb_SomeFunc);160 // set this function logic161 if (main_source)162 {163 jQuery('#jform_view_table_main').closest('.control-group').show();164 if (jform_vvvvvzbvyv_required)165 {166 updateFieldRequired('view_table_main',0);167 jQuery('#jform_view_table_main').prop('required','required');168 jQuery('#jform_view_table_main').attr('aria-required',true);169 jQuery('#jform_view_table_main').addClass('required');170 jform_vvvvvzbvyv_required = false;171 }172 }173 else174 {175 jQuery('#jform_view_table_main').closest('.control-group').hide();176 if (!jform_vvvvvzbvyv_required)177 {178 updateFieldRequired('view_table_main',1);179 jQuery('#jform_view_table_main').removeAttr('required');180 jQuery('#jform_view_table_main').removeAttr('aria-required');181 jQuery('#jform_view_table_main').removeClass('required');182 jform_vvvvvzbvyv_required = true;183 }184 }185}186// the vvvvvzb Some function187function main_source_vvvvvzb_SomeFunc(main_source_vvvvvzb)188{189 // set the function logic190 if (main_source_vvvvvzb == 1)191 {192 return true;193 }194 return false;195}196// the vvvvvzc function197function vvvvvzc(main_source_vvvvvzc)198{199 if (isSet(main_source_vvvvvzc) && main_source_vvvvvzc.constructor !== Array)200 {201 var temp_vvvvvzc = main_source_vvvvvzc;202 var main_source_vvvvvzc = [];203 main_source_vvvvvzc.push(temp_vvvvvzc);204 }205 else if (!isSet(main_source_vvvvvzc))206 {207 var main_source_vvvvvzc = [];208 }209 var main_source = main_source_vvvvvzc.some(main_source_vvvvvzc_SomeFunc);210 // set this function logic211 if (main_source)212 {213 jQuery('#jform_view_selection').closest('.control-group').show();214 if (jform_vvvvvzcvyw_required)215 {216 updateFieldRequired('view_selection',0);217 jQuery('#jform_view_selection').prop('required','required');218 jQuery('#jform_view_selection').attr('aria-required',true);219 jQuery('#jform_view_selection').addClass('required');220 jform_vvvvvzcvyw_required = false;221 }222 }223 else224 {225 jQuery('#jform_view_selection').closest('.control-group').hide();226 if (!jform_vvvvvzcvyw_required)227 {228 updateFieldRequired('view_selection',1);229 jQuery('#jform_view_selection').removeAttr('required');230 jQuery('#jform_view_selection').removeAttr('aria-required');231 jQuery('#jform_view_selection').removeClass('required');232 jform_vvvvvzcvyw_required = true;233 }234 }235}236// the vvvvvzc Some function237function main_source_vvvvvzc_SomeFunc(main_source_vvvvvzc)238{239 // set the function logic240 if (main_source_vvvvvzc == 1)241 {242 return true;243 }244 return false;245}246// the vvvvvzd function247function vvvvvzd(main_source_vvvvvzd)248{249 if (isSet(main_source_vvvvvzd) && main_source_vvvvvzd.constructor !== Array)250 {251 var temp_vvvvvzd = main_source_vvvvvzd;252 var main_source_vvvvvzd = [];253 main_source_vvvvvzd.push(temp_vvvvvzd);254 }255 else if (!isSet(main_source_vvvvvzd))256 {257 var main_source_vvvvvzd = [];258 }259 var main_source = main_source_vvvvvzd.some(main_source_vvvvvzd_SomeFunc);260 // set this function logic261 if (main_source)262 {263 jQuery('#jform_db_table_main').closest('.control-group').show();264 if (jform_vvvvvzdvyx_required)265 {266 updateFieldRequired('db_table_main',0);267 jQuery('#jform_db_table_main').prop('required','required');268 jQuery('#jform_db_table_main').attr('aria-required',true);269 jQuery('#jform_db_table_main').addClass('required');270 jform_vvvvvzdvyx_required = false;271 }272 }273 else274 {275 jQuery('#jform_db_table_main').closest('.control-group').hide();276 if (!jform_vvvvvzdvyx_required)277 {278 updateFieldRequired('db_table_main',1);279 jQuery('#jform_db_table_main').removeAttr('required');280 jQuery('#jform_db_table_main').removeAttr('aria-required');281 jQuery('#jform_db_table_main').removeClass('required');282 jform_vvvvvzdvyx_required = true;283 }284 }285}286// the vvvvvzd Some function287function main_source_vvvvvzd_SomeFunc(main_source_vvvvvzd)288{289 // set the function logic290 if (main_source_vvvvvzd == 2)291 {292 return true;293 }294 return false;295}296// the vvvvvze function297function vvvvvze(main_source_vvvvvze)298{299 if (isSet(main_source_vvvvvze) && main_source_vvvvvze.constructor !== Array)300 {301 var temp_vvvvvze = main_source_vvvvvze;302 var main_source_vvvvvze = [];303 main_source_vvvvvze.push(temp_vvvvvze);304 }305 else if (!isSet(main_source_vvvvvze))306 {307 var main_source_vvvvvze = [];308 }309 var main_source = main_source_vvvvvze.some(main_source_vvvvvze_SomeFunc);310 // set this function logic311 if (main_source)312 {313 jQuery('#jform_db_selection').closest('.control-group').show();314 if (jform_vvvvvzevyy_required)315 {316 updateFieldRequired('db_selection',0);317 jQuery('#jform_db_selection').prop('required','required');318 jQuery('#jform_db_selection').attr('aria-required',true);319 jQuery('#jform_db_selection').addClass('required');320 jform_vvvvvzevyy_required = false;321 }322 }323 else324 {325 jQuery('#jform_db_selection').closest('.control-group').hide();326 if (!jform_vvvvvzevyy_required)327 {328 updateFieldRequired('db_selection',1);329 jQuery('#jform_db_selection').removeAttr('required');330 jQuery('#jform_db_selection').removeAttr('aria-required');331 jQuery('#jform_db_selection').removeClass('required');332 jform_vvvvvzevyy_required = true;333 }334 }335}336// the vvvvvze Some function337function main_source_vvvvvze_SomeFunc(main_source_vvvvvze)338{339 // set the function logic340 if (main_source_vvvvvze == 2)341 {342 return true;343 }344 return false;345}346// the vvvvvzf function347function vvvvvzf(addcalculation_vvvvvzf)348{349 // set the function logic350 if (addcalculation_vvvvvzf == 1)351 {352 jQuery('#jform_php_calculation').closest('.control-group').show();353 if (jform_vvvvvzfvyz_required)354 {355 updateFieldRequired('php_calculation',0);356 jQuery('#jform_php_calculation').prop('required','required');357 jQuery('#jform_php_calculation').attr('aria-required',true);358 jQuery('#jform_php_calculation').addClass('required');359 jform_vvvvvzfvyz_required = false;360 }361 }362 else363 {364 jQuery('#jform_php_calculation').closest('.control-group').hide();365 if (!jform_vvvvvzfvyz_required)366 {367 updateFieldRequired('php_calculation',1);368 jQuery('#jform_php_calculation').removeAttr('required');369 jQuery('#jform_php_calculation').removeAttr('aria-required');370 jQuery('#jform_php_calculation').removeClass('required');371 jform_vvvvvzfvyz_required = true;372 }373 }374}375// the vvvvvzg function376function vvvvvzg(addcalculation_vvvvvzg,gettype_vvvvvzg)377{378 if (isSet(addcalculation_vvvvvzg) && addcalculation_vvvvvzg.constructor !== Array)379 {380 var temp_vvvvvzg = addcalculation_vvvvvzg;381 var addcalculation_vvvvvzg = [];382 addcalculation_vvvvvzg.push(temp_vvvvvzg);383 }384 else if (!isSet(addcalculation_vvvvvzg))385 {386 var addcalculation_vvvvvzg = [];387 }388 var addcalculation = addcalculation_vvvvvzg.some(addcalculation_vvvvvzg_SomeFunc);389 if (isSet(gettype_vvvvvzg) && gettype_vvvvvzg.constructor !== Array)390 {391 var temp_vvvvvzg = gettype_vvvvvzg;392 var gettype_vvvvvzg = [];393 gettype_vvvvvzg.push(temp_vvvvvzg);394 }395 else if (!isSet(gettype_vvvvvzg))396 {397 var gettype_vvvvvzg = [];398 }399 var gettype = gettype_vvvvvzg.some(gettype_vvvvvzg_SomeFunc);400 // set this function logic401 if (addcalculation && gettype)402 {403 jQuery('.note_calculation_item').closest('.control-group').show();404 }405 else406 {407 jQuery('.note_calculation_item').closest('.control-group').hide();408 }409}410// the vvvvvzg Some function411function addcalculation_vvvvvzg_SomeFunc(addcalculation_vvvvvzg)412{413 // set the function logic414 if (addcalculation_vvvvvzg == 1)415 {416 return true;417 }418 return false;419}420// the vvvvvzg Some function421function gettype_vvvvvzg_SomeFunc(gettype_vvvvvzg)422{423 // set the function logic424 if (gettype_vvvvvzg == 1 || gettype_vvvvvzg == 3)425 {426 return true;427 }428 return false;429}430// the vvvvvzh function431function vvvvvzh(addcalculation_vvvvvzh,gettype_vvvvvzh)432{433 if (isSet(addcalculation_vvvvvzh) && addcalculation_vvvvvzh.constructor !== Array)434 {435 var temp_vvvvvzh = addcalculation_vvvvvzh;436 var addcalculation_vvvvvzh = [];437 addcalculation_vvvvvzh.push(temp_vvvvvzh);438 }439 else if (!isSet(addcalculation_vvvvvzh))440 {441 var addcalculation_vvvvvzh = [];442 }443 var addcalculation = addcalculation_vvvvvzh.some(addcalculation_vvvvvzh_SomeFunc);444 if (isSet(gettype_vvvvvzh) && gettype_vvvvvzh.constructor !== Array)445 {446 var temp_vvvvvzh = gettype_vvvvvzh;447 var gettype_vvvvvzh = [];448 gettype_vvvvvzh.push(temp_vvvvvzh);449 }450 else if (!isSet(gettype_vvvvvzh))451 {452 var gettype_vvvvvzh = [];453 }454 var gettype = gettype_vvvvvzh.some(gettype_vvvvvzh_SomeFunc);455 // set this function logic456 if (addcalculation && gettype)457 {458 jQuery('.note_calculation_items').closest('.control-group').show();459 }460 else461 {462 jQuery('.note_calculation_items').closest('.control-group').hide();463 }464}465// the vvvvvzh Some function466function addcalculation_vvvvvzh_SomeFunc(addcalculation_vvvvvzh)467{468 // set the function logic469 if (addcalculation_vvvvvzh == 1)470 {471 return true;472 }473 return false;474}475// the vvvvvzh Some function476function gettype_vvvvvzh_SomeFunc(gettype_vvvvvzh)477{478 // set the function logic479 if (gettype_vvvvvzh == 2 || gettype_vvvvvzh == 4)480 {481 return true;482 }483 return false;484}485// the vvvvvzk function486function vvvvvzk(main_source_vvvvvzk)487{488 if (isSet(main_source_vvvvvzk) && main_source_vvvvvzk.constructor !== Array)489 {490 var temp_vvvvvzk = main_source_vvvvvzk;491 var main_source_vvvvvzk = [];492 main_source_vvvvvzk.push(temp_vvvvvzk);493 }494 else if (!isSet(main_source_vvvvvzk))495 {496 var main_source_vvvvvzk = [];497 }498 var main_source = main_source_vvvvvzk.some(main_source_vvvvvzk_SomeFunc);499 // set this function logic500 if (main_source)501 {502 jQuery('#jform_php_custom_get').closest('.control-group').show();503 if (jform_vvvvvzkvza_required)504 {505 updateFieldRequired('php_custom_get',0);506 jQuery('#jform_php_custom_get').prop('required','required');507 jQuery('#jform_php_custom_get').attr('aria-required',true);508 jQuery('#jform_php_custom_get').addClass('required');509 jform_vvvvvzkvza_required = false;510 }511 }512 else513 {514 jQuery('#jform_php_custom_get').closest('.control-group').hide();515 if (!jform_vvvvvzkvza_required)516 {517 updateFieldRequired('php_custom_get',1);518 jQuery('#jform_php_custom_get').removeAttr('required');519 jQuery('#jform_php_custom_get').removeAttr('aria-required');520 jQuery('#jform_php_custom_get').removeClass('required');521 jform_vvvvvzkvza_required = true;522 }523 }524}525// the vvvvvzk Some function526function main_source_vvvvvzk_SomeFunc(main_source_vvvvvzk)527{528 // set the function logic529 if (main_source_vvvvvzk == 3)530 {531 return true;532 }533 return false;534}535// the vvvvvzl function536function vvvvvzl(main_source_vvvvvzl)537{538 if (isSet(main_source_vvvvvzl) && main_source_vvvvvzl.constructor !== Array)539 {540 var temp_vvvvvzl = main_source_vvvvvzl;541 var main_source_vvvvvzl = [];542 main_source_vvvvvzl.push(temp_vvvvvzl);543 }544 else if (!isSet(main_source_vvvvvzl))545 {546 var main_source_vvvvvzl = [];547 }548 var main_source = main_source_vvvvvzl.some(main_source_vvvvvzl_SomeFunc);549 // set this function logic550 if (main_source)551 {552 jQuery('#jform_filter-lbl').closest('.control-group').show();553 jQuery('#jform_global-lbl').closest('.control-group').show();554 jQuery('#jform_order-lbl').closest('.control-group').show();555 jQuery('#jform_where-lbl').closest('.control-group').show();556 jQuery('#jform_join_db_table-lbl').closest('.control-group').show();557 jQuery('#jform_join_view_table-lbl').closest('.control-group').show();558 }559 else560 {561 jQuery('#jform_filter-lbl').closest('.control-group').hide();562 jQuery('#jform_global-lbl').closest('.control-group').hide();563 jQuery('#jform_order-lbl').closest('.control-group').hide();564 jQuery('#jform_where-lbl').closest('.control-group').hide();565 jQuery('#jform_join_db_table-lbl').closest('.control-group').hide();566 jQuery('#jform_join_view_table-lbl').closest('.control-group').hide();567 }568}569// the vvvvvzl Some function570function main_source_vvvvvzl_SomeFunc(main_source_vvvvvzl)571{572 // set the function logic573 if (main_source_vvvvvzl == 1 || main_source_vvvvvzl == 2)574 {575 return true;576 }577 return false;578}579// the vvvvvzm function580function vvvvvzm(add_php_before_getitem_vvvvvzm,gettype_vvvvvzm)581{582 if (isSet(add_php_before_getitem_vvvvvzm) && add_php_before_getitem_vvvvvzm.constructor !== Array)583 {584 var temp_vvvvvzm = add_php_before_getitem_vvvvvzm;585 var add_php_before_getitem_vvvvvzm = [];586 add_php_before_getitem_vvvvvzm.push(temp_vvvvvzm);587 }588 else if (!isSet(add_php_before_getitem_vvvvvzm))589 {590 var add_php_before_getitem_vvvvvzm = [];591 }592 var add_php_before_getitem = add_php_before_getitem_vvvvvzm.some(add_php_before_getitem_vvvvvzm_SomeFunc);593 if (isSet(gettype_vvvvvzm) && gettype_vvvvvzm.constructor !== Array)594 {595 var temp_vvvvvzm = gettype_vvvvvzm;596 var gettype_vvvvvzm = [];597 gettype_vvvvvzm.push(temp_vvvvvzm);598 }599 else if (!isSet(gettype_vvvvvzm))600 {601 var gettype_vvvvvzm = [];602 }603 var gettype = gettype_vvvvvzm.some(gettype_vvvvvzm_SomeFunc);604 // set this function logic605 if (add_php_before_getitem && gettype)606 {607 jQuery('#jform_php_before_getitem').closest('.control-group').show();608 if (jform_vvvvvzmvzb_required)609 {610 updateFieldRequired('php_before_getitem',0);611 jQuery('#jform_php_before_getitem').prop('required','required');612 jQuery('#jform_php_before_getitem').attr('aria-required',true);613 jQuery('#jform_php_before_getitem').addClass('required');614 jform_vvvvvzmvzb_required = false;615 }616 }617 else618 {619 jQuery('#jform_php_before_getitem').closest('.control-group').hide();620 if (!jform_vvvvvzmvzb_required)621 {622 updateFieldRequired('php_before_getitem',1);623 jQuery('#jform_php_before_getitem').removeAttr('required');624 jQuery('#jform_php_before_getitem').removeAttr('aria-required');625 jQuery('#jform_php_before_getitem').removeClass('required');626 jform_vvvvvzmvzb_required = true;627 }628 }629}630// the vvvvvzm Some function631function add_php_before_getitem_vvvvvzm_SomeFunc(add_php_before_getitem_vvvvvzm)632{633 // set the function logic634 if (add_php_before_getitem_vvvvvzm == 1)635 {636 return true;637 }638 return false;639}640// the vvvvvzm Some function641function gettype_vvvvvzm_SomeFunc(gettype_vvvvvzm)642{643 // set the function logic644 if (gettype_vvvvvzm == 1 || gettype_vvvvvzm == 3)645 {646 return true;647 }648 return false;649}650// the vvvvvzn function651function vvvvvzn(add_php_after_getitem_vvvvvzn,gettype_vvvvvzn)652{653 if (isSet(add_php_after_getitem_vvvvvzn) && add_php_after_getitem_vvvvvzn.constructor !== Array)654 {655 var temp_vvvvvzn = add_php_after_getitem_vvvvvzn;656 var add_php_after_getitem_vvvvvzn = [];657 add_php_after_getitem_vvvvvzn.push(temp_vvvvvzn);658 }659 else if (!isSet(add_php_after_getitem_vvvvvzn))660 {661 var add_php_after_getitem_vvvvvzn = [];662 }663 var add_php_after_getitem = add_php_after_getitem_vvvvvzn.some(add_php_after_getitem_vvvvvzn_SomeFunc);664 if (isSet(gettype_vvvvvzn) && gettype_vvvvvzn.constructor !== Array)665 {666 var temp_vvvvvzn = gettype_vvvvvzn;667 var gettype_vvvvvzn = [];668 gettype_vvvvvzn.push(temp_vvvvvzn);669 }670 else if (!isSet(gettype_vvvvvzn))671 {672 var gettype_vvvvvzn = [];673 }674 var gettype = gettype_vvvvvzn.some(gettype_vvvvvzn_SomeFunc);675 // set this function logic676 if (add_php_after_getitem && gettype)677 {678 jQuery('#jform_php_after_getitem').closest('.control-group').show();679 if (jform_vvvvvznvzc_required)680 {681 updateFieldRequired('php_after_getitem',0);682 jQuery('#jform_php_after_getitem').prop('required','required');683 jQuery('#jform_php_after_getitem').attr('aria-required',true);684 jQuery('#jform_php_after_getitem').addClass('required');685 jform_vvvvvznvzc_required = false;686 }687 }688 else689 {690 jQuery('#jform_php_after_getitem').closest('.control-group').hide();691 if (!jform_vvvvvznvzc_required)692 {693 updateFieldRequired('php_after_getitem',1);694 jQuery('#jform_php_after_getitem').removeAttr('required');695 jQuery('#jform_php_after_getitem').removeAttr('aria-required');696 jQuery('#jform_php_after_getitem').removeClass('required');697 jform_vvvvvznvzc_required = true;698 }699 }700}701// the vvvvvzn Some function702function add_php_after_getitem_vvvvvzn_SomeFunc(add_php_after_getitem_vvvvvzn)703{704 // set the function logic705 if (add_php_after_getitem_vvvvvzn == 1)706 {707 return true;708 }709 return false;710}711// the vvvvvzn Some function712function gettype_vvvvvzn_SomeFunc(gettype_vvvvvzn)713{714 // set the function logic715 if (gettype_vvvvvzn == 1 || gettype_vvvvvzn == 3)716 {717 return true;718 }719 return false;720}721// the vvvvvzp function722function vvvvvzp(gettype_vvvvvzp)723{724 if (isSet(gettype_vvvvvzp) && gettype_vvvvvzp.constructor !== Array)725 {726 var temp_vvvvvzp = gettype_vvvvvzp;727 var gettype_vvvvvzp = [];728 gettype_vvvvvzp.push(temp_vvvvvzp);729 }730 else if (!isSet(gettype_vvvvvzp))731 {732 var gettype_vvvvvzp = [];733 }734 var gettype = gettype_vvvvvzp.some(gettype_vvvvvzp_SomeFunc);735 // set this function logic736 if (gettype)737 {738 jQuery('#jform_add_php_after_getitem').closest('.control-group').show();739 if (jform_vvvvvzpvzd_required)740 {741 updateFieldRequired('add_php_after_getitem',0);742 jQuery('#jform_add_php_after_getitem').prop('required','required');743 jQuery('#jform_add_php_after_getitem').attr('aria-required',true);744 jQuery('#jform_add_php_after_getitem').addClass('required');745 jform_vvvvvzpvzd_required = false;746 }747 jQuery('#jform_add_php_before_getitem').closest('.control-group').show();748 if (jform_vvvvvzpvze_required)749 {750 updateFieldRequired('add_php_before_getitem',0);751 jQuery('#jform_add_php_before_getitem').prop('required','required');752 jQuery('#jform_add_php_before_getitem').attr('aria-required',true);753 jQuery('#jform_add_php_before_getitem').addClass('required');754 jform_vvvvvzpvze_required = false;755 }756 }757 else758 {759 jQuery('#jform_add_php_after_getitem').closest('.control-group').hide();760 if (!jform_vvvvvzpvzd_required)761 {762 updateFieldRequired('add_php_after_getitem',1);763 jQuery('#jform_add_php_after_getitem').removeAttr('required');764 jQuery('#jform_add_php_after_getitem').removeAttr('aria-required');765 jQuery('#jform_add_php_after_getitem').removeClass('required');766 jform_vvvvvzpvzd_required = true;767 }768 jQuery('#jform_add_php_before_getitem').closest('.control-group').hide();769 if (!jform_vvvvvzpvze_required)770 {771 updateFieldRequired('add_php_before_getitem',1);772 jQuery('#jform_add_php_before_getitem').removeAttr('required');773 jQuery('#jform_add_php_before_getitem').removeAttr('aria-required');774 jQuery('#jform_add_php_before_getitem').removeClass('required');775 jform_vvvvvzpvze_required = true;776 }777 }778}779// the vvvvvzp Some function780function gettype_vvvvvzp_SomeFunc(gettype_vvvvvzp)781{782 // set the function logic783 if (gettype_vvvvvzp == 1 || gettype_vvvvvzp == 3)784 {785 return true;786 }787 return false;788}789// the vvvvvzq function790function vvvvvzq(add_php_getlistquery_vvvvvzq,gettype_vvvvvzq)791{792 if (isSet(add_php_getlistquery_vvvvvzq) && add_php_getlistquery_vvvvvzq.constructor !== Array)793 {794 var temp_vvvvvzq = add_php_getlistquery_vvvvvzq;795 var add_php_getlistquery_vvvvvzq = [];796 add_php_getlistquery_vvvvvzq.push(temp_vvvvvzq);797 }798 else if (!isSet(add_php_getlistquery_vvvvvzq))799 {800 var add_php_getlistquery_vvvvvzq = [];801 }802 var add_php_getlistquery = add_php_getlistquery_vvvvvzq.some(add_php_getlistquery_vvvvvzq_SomeFunc);803 if (isSet(gettype_vvvvvzq) && gettype_vvvvvzq.constructor !== Array)804 {805 var temp_vvvvvzq = gettype_vvvvvzq;806 var gettype_vvvvvzq = [];807 gettype_vvvvvzq.push(temp_vvvvvzq);808 }809 else if (!isSet(gettype_vvvvvzq))810 {811 var gettype_vvvvvzq = [];812 }813 var gettype = gettype_vvvvvzq.some(gettype_vvvvvzq_SomeFunc);814 // set this function logic815 if (add_php_getlistquery && gettype)816 {817 jQuery('#jform_php_getlistquery').closest('.control-group').show();818 if (jform_vvvvvzqvzf_required)819 {820 updateFieldRequired('php_getlistquery',0);821 jQuery('#jform_php_getlistquery').prop('required','required');822 jQuery('#jform_php_getlistquery').attr('aria-required',true);823 jQuery('#jform_php_getlistquery').addClass('required');824 jform_vvvvvzqvzf_required = false;825 }826 }827 else828 {829 jQuery('#jform_php_getlistquery').closest('.control-group').hide();830 if (!jform_vvvvvzqvzf_required)831 {832 updateFieldRequired('php_getlistquery',1);833 jQuery('#jform_php_getlistquery').removeAttr('required');834 jQuery('#jform_php_getlistquery').removeAttr('aria-required');835 jQuery('#jform_php_getlistquery').removeClass('required');836 jform_vvvvvzqvzf_required = true;837 }838 }839}840// the vvvvvzq Some function841function add_php_getlistquery_vvvvvzq_SomeFunc(add_php_getlistquery_vvvvvzq)842{843 // set the function logic844 if (add_php_getlistquery_vvvvvzq == 1)845 {846 return true;847 }848 return false;849}850// the vvvvvzq Some function851function gettype_vvvvvzq_SomeFunc(gettype_vvvvvzq)852{853 // set the function logic854 if (gettype_vvvvvzq == 2 || gettype_vvvvvzq == 4)855 {856 return true;857 }858 return false;859}860// the vvvvvzr function861function vvvvvzr(add_php_before_getitems_vvvvvzr,gettype_vvvvvzr)862{863 if (isSet(add_php_before_getitems_vvvvvzr) && add_php_before_getitems_vvvvvzr.constructor !== Array)864 {865 var temp_vvvvvzr = add_php_before_getitems_vvvvvzr;866 var add_php_before_getitems_vvvvvzr = [];867 add_php_before_getitems_vvvvvzr.push(temp_vvvvvzr);868 }869 else if (!isSet(add_php_before_getitems_vvvvvzr))870 {871 var add_php_before_getitems_vvvvvzr = [];872 }873 var add_php_before_getitems = add_php_before_getitems_vvvvvzr.some(add_php_before_getitems_vvvvvzr_SomeFunc);874 if (isSet(gettype_vvvvvzr) && gettype_vvvvvzr.constructor !== Array)875 {876 var temp_vvvvvzr = gettype_vvvvvzr;877 var gettype_vvvvvzr = [];878 gettype_vvvvvzr.push(temp_vvvvvzr);879 }880 else if (!isSet(gettype_vvvvvzr))881 {882 var gettype_vvvvvzr = [];883 }884 var gettype = gettype_vvvvvzr.some(gettype_vvvvvzr_SomeFunc);885 // set this function logic886 if (add_php_before_getitems && gettype)887 {888 jQuery('#jform_php_before_getitems').closest('.control-group').show();889 if (jform_vvvvvzrvzg_required)890 {891 updateFieldRequired('php_before_getitems',0);892 jQuery('#jform_php_before_getitems').prop('required','required');893 jQuery('#jform_php_before_getitems').attr('aria-required',true);894 jQuery('#jform_php_before_getitems').addClass('required');895 jform_vvvvvzrvzg_required = false;896 }897 }898 else899 {900 jQuery('#jform_php_before_getitems').closest('.control-group').hide();901 if (!jform_vvvvvzrvzg_required)902 {903 updateFieldRequired('php_before_getitems',1);904 jQuery('#jform_php_before_getitems').removeAttr('required');905 jQuery('#jform_php_before_getitems').removeAttr('aria-required');906 jQuery('#jform_php_before_getitems').removeClass('required');907 jform_vvvvvzrvzg_required = true;908 }909 }910}911// the vvvvvzr Some function912function add_php_before_getitems_vvvvvzr_SomeFunc(add_php_before_getitems_vvvvvzr)913{914 // set the function logic915 if (add_php_before_getitems_vvvvvzr == 1)916 {917 return true;918 }919 return false;920}921// the vvvvvzr Some function922function gettype_vvvvvzr_SomeFunc(gettype_vvvvvzr)923{924 // set the function logic925 if (gettype_vvvvvzr == 2 || gettype_vvvvvzr == 4)926 {927 return true;928 }929 return false;930}931// the vvvvvzs function932function vvvvvzs(add_php_after_getitems_vvvvvzs,gettype_vvvvvzs)933{934 if (isSet(add_php_after_getitems_vvvvvzs) && add_php_after_getitems_vvvvvzs.constructor !== Array)935 {936 var temp_vvvvvzs = add_php_after_getitems_vvvvvzs;937 var add_php_after_getitems_vvvvvzs = [];938 add_php_after_getitems_vvvvvzs.push(temp_vvvvvzs);939 }940 else if (!isSet(add_php_after_getitems_vvvvvzs))941 {942 var add_php_after_getitems_vvvvvzs = [];943 }944 var add_php_after_getitems = add_php_after_getitems_vvvvvzs.some(add_php_after_getitems_vvvvvzs_SomeFunc);945 if (isSet(gettype_vvvvvzs) && gettype_vvvvvzs.constructor !== Array)946 {947 var temp_vvvvvzs = gettype_vvvvvzs;948 var gettype_vvvvvzs = [];949 gettype_vvvvvzs.push(temp_vvvvvzs);950 }951 else if (!isSet(gettype_vvvvvzs))952 {953 var gettype_vvvvvzs = [];954 }955 var gettype = gettype_vvvvvzs.some(gettype_vvvvvzs_SomeFunc);956 // set this function logic957 if (add_php_after_getitems && gettype)958 {959 jQuery('#jform_php_after_getitems').closest('.control-group').show();960 if (jform_vvvvvzsvzh_required)961 {962 updateFieldRequired('php_after_getitems',0);963 jQuery('#jform_php_after_getitems').prop('required','required');964 jQuery('#jform_php_after_getitems').attr('aria-required',true);965 jQuery('#jform_php_after_getitems').addClass('required');966 jform_vvvvvzsvzh_required = false;967 }968 }969 else970 {971 jQuery('#jform_php_after_getitems').closest('.control-group').hide();972 if (!jform_vvvvvzsvzh_required)973 {974 updateFieldRequired('php_after_getitems',1);975 jQuery('#jform_php_after_getitems').removeAttr('required');976 jQuery('#jform_php_after_getitems').removeAttr('aria-required');977 jQuery('#jform_php_after_getitems').removeClass('required');978 jform_vvvvvzsvzh_required = true;979 }980 }981}982// the vvvvvzs Some function983function add_php_after_getitems_vvvvvzs_SomeFunc(add_php_after_getitems_vvvvvzs)984{985 // set the function logic986 if (add_php_after_getitems_vvvvvzs == 1)987 {988 return true;989 }990 return false;991}992// the vvvvvzs Some function993function gettype_vvvvvzs_SomeFunc(gettype_vvvvvzs)994{995 // set the function logic996 if (gettype_vvvvvzs == 2 || gettype_vvvvvzs == 4)997 {998 return true;999 }1000 return false;1001}1002// the vvvvvzu function1003function vvvvvzu(gettype_vvvvvzu)1004{1005 if (isSet(gettype_vvvvvzu) && gettype_vvvvvzu.constructor !== Array)1006 {1007 var temp_vvvvvzu = gettype_vvvvvzu;1008 var gettype_vvvvvzu = [];1009 gettype_vvvvvzu.push(temp_vvvvvzu);1010 }1011 else if (!isSet(gettype_vvvvvzu))1012 {1013 var gettype_vvvvvzu = [];1014 }1015 var gettype = gettype_vvvvvzu.some(gettype_vvvvvzu_SomeFunc);1016 // set this function logic1017 if (gettype)1018 {1019 jQuery('#jform_add_php_after_getitems').closest('.control-group').show();1020 if (jform_vvvvvzuvzi_required)1021 {1022 updateFieldRequired('add_php_after_getitems',0);1023 jQuery('#jform_add_php_after_getitems').prop('required','required');1024 jQuery('#jform_add_php_after_getitems').attr('aria-required',true);1025 jQuery('#jform_add_php_after_getitems').addClass('required');1026 jform_vvvvvzuvzi_required = false;1027 }1028 jQuery('#jform_add_php_before_getitems').closest('.control-group').show();1029 if (jform_vvvvvzuvzj_required)1030 {1031 updateFieldRequired('add_php_before_getitems',0);1032 jQuery('#jform_add_php_before_getitems').prop('required','required');1033 jQuery('#jform_add_php_before_getitems').attr('aria-required',true);1034 jQuery('#jform_add_php_before_getitems').addClass('required');1035 jform_vvvvvzuvzj_required = false;1036 }1037 jQuery('#jform_add_php_getlistquery').closest('.control-group').show();1038 if (jform_vvvvvzuvzk_required)1039 {1040 updateFieldRequired('add_php_getlistquery',0);1041 jQuery('#jform_add_php_getlistquery').prop('required','required');1042 jQuery('#jform_add_php_getlistquery').attr('aria-required',true);1043 jQuery('#jform_add_php_getlistquery').addClass('required');1044 jform_vvvvvzuvzk_required = false;1045 }1046 }1047 else1048 {1049 jQuery('#jform_add_php_after_getitems').closest('.control-group').hide();1050 if (!jform_vvvvvzuvzi_required)1051 {1052 updateFieldRequired('add_php_after_getitems',1);1053 jQuery('#jform_add_php_after_getitems').removeAttr('required');1054 jQuery('#jform_add_php_after_getitems').removeAttr('aria-required');1055 jQuery('#jform_add_php_after_getitems').removeClass('required');1056 jform_vvvvvzuvzi_required = true;1057 }1058 jQuery('#jform_add_php_before_getitems').closest('.control-group').hide();1059 if (!jform_vvvvvzuvzj_required)1060 {1061 updateFieldRequired('add_php_before_getitems',1);1062 jQuery('#jform_add_php_before_getitems').removeAttr('required');1063 jQuery('#jform_add_php_before_getitems').removeAttr('aria-required');1064 jQuery('#jform_add_php_before_getitems').removeClass('required');1065 jform_vvvvvzuvzj_required = true;1066 }1067 jQuery('#jform_add_php_getlistquery').closest('.control-group').hide();1068 if (!jform_vvvvvzuvzk_required)1069 {1070 updateFieldRequired('add_php_getlistquery',1);1071 jQuery('#jform_add_php_getlistquery').removeAttr('required');1072 jQuery('#jform_add_php_getlistquery').removeAttr('aria-required');1073 jQuery('#jform_add_php_getlistquery').removeClass('required');1074 jform_vvvvvzuvzk_required = true;1075 }1076 }1077}1078// the vvvvvzu Some function1079function gettype_vvvvvzu_SomeFunc(gettype_vvvvvzu)1080{1081 // set the function logic1082 if (gettype_vvvvvzu == 2 || gettype_vvvvvzu == 4)1083 {1084 return true;1085 }1086 return false;1087}1088// the vvvvvzv function1089function vvvvvzv(gettype_vvvvvzv)1090{1091 if (isSet(gettype_vvvvvzv) && gettype_vvvvvzv.constructor !== Array)1092 {1093 var temp_vvvvvzv = gettype_vvvvvzv;1094 var gettype_vvvvvzv = [];1095 gettype_vvvvvzv.push(temp_vvvvvzv);1096 }1097 else if (!isSet(gettype_vvvvvzv))1098 {1099 var gettype_vvvvvzv = [];1100 }1101 var gettype = gettype_vvvvvzv.some(gettype_vvvvvzv_SomeFunc);1102 // set this function logic1103 if (gettype)1104 {1105 jQuery('#jform_pagination').closest('.control-group').show();1106 if (jform_vvvvvzvvzl_required)1107 {1108 updateFieldRequired('pagination',0);1109 jQuery('#jform_pagination').prop('required','required');1110 jQuery('#jform_pagination').attr('aria-required',true);1111 jQuery('#jform_pagination').addClass('required');1112 jform_vvvvvzvvzl_required = false;1113 }1114 }1115 else1116 {1117 jQuery('#jform_pagination').closest('.control-group').hide();1118 if (!jform_vvvvvzvvzl_required)1119 {1120 updateFieldRequired('pagination',1);1121 jQuery('#jform_pagination').removeAttr('required');1122 jQuery('#jform_pagination').removeAttr('aria-required');1123 jQuery('#jform_pagination').removeClass('required');1124 jform_vvvvvzvvzl_required = true;1125 }1126 }1127}1128// the vvvvvzv Some function1129function gettype_vvvvvzv_SomeFunc(gettype_vvvvvzv)1130{1131 // set the function logic1132 if (gettype_vvvvvzv == 2)1133 {1134 return true;1135 }1136 return false;1137}1138// the vvvvvzw function1139function vvvvvzw(gettype_vvvvvzw)1140{1141 if (isSet(gettype_vvvvvzw) && gettype_vvvvvzw.constructor !== Array)1142 {1143 var temp_vvvvvzw = gettype_vvvvvzw;1144 var gettype_vvvvvzw = [];1145 gettype_vvvvvzw.push(temp_vvvvvzw);1146 }1147 else if (!isSet(gettype_vvvvvzw))1148 {1149 var gettype_vvvvvzw = [];1150 }1151 var gettype = gettype_vvvvvzw.some(gettype_vvvvvzw_SomeFunc);1152 // set this function logic1153 if (gettype)1154 {1155 jQuery('#jform_add_php_router_parse').closest('.control-group').show();1156 if (jform_vvvvvzwvzm_required)1157 {1158 updateFieldRequired('add_php_router_parse',0);1159 jQuery('#jform_add_php_router_parse').prop('required','required');1160 jQuery('#jform_add_php_router_parse').attr('aria-required',true);1161 jQuery('#jform_add_php_router_parse').addClass('required');1162 jform_vvvvvzwvzm_required = false;1163 }1164 }1165 else1166 {1167 jQuery('#jform_add_php_router_parse').closest('.control-group').hide();1168 if (!jform_vvvvvzwvzm_required)1169 {1170 updateFieldRequired('add_php_router_parse',1);1171 jQuery('#jform_add_php_router_parse').removeAttr('required');1172 jQuery('#jform_add_php_router_parse').removeAttr('aria-required');1173 jQuery('#jform_add_php_router_parse').removeClass('required');1174 jform_vvvvvzwvzm_required = true;1175 }1176 }1177}1178// the vvvvvzw Some function1179function gettype_vvvvvzw_SomeFunc(gettype_vvvvvzw)1180{1181 // set the function logic1182 if (gettype_vvvvvzw == 1 || gettype_vvvvvzw == 2)1183 {1184 return true;1185 }1186 return false;1187}1188// the vvvvvzx function1189function vvvvvzx(gettype_vvvvvzx,add_php_router_parse_vvvvvzx)1190{1191 if (isSet(gettype_vvvvvzx) && gettype_vvvvvzx.constructor !== Array)1192 {1193 var temp_vvvvvzx = gettype_vvvvvzx;1194 var gettype_vvvvvzx = [];1195 gettype_vvvvvzx.push(temp_vvvvvzx);1196 }1197 else if (!isSet(gettype_vvvvvzx))1198 {1199 var gettype_vvvvvzx = [];1200 }1201 var gettype = gettype_vvvvvzx.some(gettype_vvvvvzx_SomeFunc);1202 if (isSet(add_php_router_parse_vvvvvzx) && add_php_router_parse_vvvvvzx.constructor !== Array)1203 {1204 var temp_vvvvvzx = add_php_router_parse_vvvvvzx;1205 var add_php_router_parse_vvvvvzx = [];1206 add_php_router_parse_vvvvvzx.push(temp_vvvvvzx);1207 }1208 else if (!isSet(add_php_router_parse_vvvvvzx))1209 {1210 var add_php_router_parse_vvvvvzx = [];1211 }1212 var add_php_router_parse = add_php_router_parse_vvvvvzx.some(add_php_router_parse_vvvvvzx_SomeFunc);1213 // set this function logic1214 if (gettype && add_php_router_parse)1215 {1216 jQuery('#jform_php_router_parse').closest('.control-group').show();1217 if (jform_vvvvvzxvzn_required)1218 {1219 updateFieldRequired('php_router_parse',0);1220 jQuery('#jform_php_router_parse').prop('required','required');1221 jQuery('#jform_php_router_parse').attr('aria-required',true);1222 jQuery('#jform_php_router_parse').addClass('required');1223 jform_vvvvvzxvzn_required = false;1224 }1225 }1226 else1227 {1228 jQuery('#jform_php_router_parse').closest('.control-group').hide();1229 if (!jform_vvvvvzxvzn_required)1230 {1231 updateFieldRequired('php_router_parse',1);1232 jQuery('#jform_php_router_parse').removeAttr('required');1233 jQuery('#jform_php_router_parse').removeAttr('aria-required');1234 jQuery('#jform_php_router_parse').removeClass('required');1235 jform_vvvvvzxvzn_required = true;1236 }1237 }1238}1239// the vvvvvzx Some function1240function gettype_vvvvvzx_SomeFunc(gettype_vvvvvzx)1241{1242 // set the function logic1243 if (gettype_vvvvvzx == 1 || gettype_vvvvvzx == 2)1244 {1245 return true;1246 }1247 return false;1248}1249// the vvvvvzx Some function1250function add_php_router_parse_vvvvvzx_SomeFunc(add_php_router_parse_vvvvvzx)1251{1252 // set the function logic1253 if (add_php_router_parse_vvvvvzx == 1)1254 {1255 return true;1256 }1257 return false;1258}1259// update required fields1260function updateFieldRequired(name,status)1261{1262 var not_required = jQuery('#jform_not_required').val();1263 if(status == 1)1264 {1265 if (isSet(not_required) && not_required != 0)1266 {1267 not_required = not_required+','+name;1268 }1269 else1270 {1271 not_required = ','+name;1272 }1273 }1274 else1275 {1276 if (isSet(not_required) && not_required != 0)1277 {1278 not_required = not_required.replace(','+name,'');1279 }1280 }1281 jQuery('#jform_not_required').val(not_required);1282}1283// the isSet function1284function isSet(val)1285{1286 if ((val != undefined) && (val != null) && 0 !== val.length){1287 return true;1288 }1289 return false;1290}1291jQuery(document).ready(function()1292{1293 // get the linked details1294 getLinked();1295 var valueSwitch = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();1296 getDynamicScripts(valueSwitch);1297});1298function getLinked_server(type){1299 var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLinked&format=json&vdm="+vastDevMod;1300 if(token.length > 0 && type > 0){1301 var request = 'token='+token+'&type='+type;1302 }1303 return jQuery.ajax({1304 type: 'GET',1305 url: getUrl,1306 dataType: 'jsonp',1307 data: request,1308 jsonp: 'callback'1309 });1310}1311function getLinked(){1312 getLinked_server(1).done(function(result) {1313 if(result){1314 jQuery('#display_linked_to').html(result);1315 }1316 });1317}1318function getViewTableColumns_server(viewId,asKey,rowType)1319{1320 var getUrl = "index.php?option=com_componentbuilder&task=ajax.viewTableColumns&format=json";1321 if (token.length > 0 && viewId > 0 && asKey.length > 0)1322 {1323 var request = 'token='+token+'&as='+asKey+'&type='+rowType+'&id='+viewId;1324 }1325 return jQuery.ajax({1326 type: 'GET',1327 url: getUrl,1328 dataType: 'jsonp',1329 data: request,1330 jsonp: 'callback'1331 });1332}1333function getViewTableColumns(id,asKey,key,rowType,main, table_, nr_)1334{1335 getViewTableColumns_server(id,asKey,rowType).done(function(result) {1336 if (result)1337 {1338 loadSelectionData(result, 'view', key, main, table_, nr_);1339 }1340 else1341 {1342 loadSelectionData(false, 'view', key, main, table_, nr_);1343 }1344 })1345}1346function getDbTableColumns_server(name,asKey,rowType)1347{1348 var getUrl = "index.php?option=com_componentbuilder&task=ajax.dbTableColumns&format=json";1349 if (token.length > 0 && name.length > 0 && asKey.length > 0)1350 {1351 var request = 'token='+token+'&as='+asKey+'&type='+rowType+'&name='+name;1352 }1353 return jQuery.ajax({1354 type: 'GET',1355 url: getUrl,1356 dataType: 'jsonp',1357 data: request,1358 jsonp: 'callback'1359 });1360}1361function getDbTableColumns(name, asKey, key, rowType, main, table_, nr_)1362{1363 getDbTableColumns_server(name,asKey,rowType).done(function(result) {1364 if (result)1365 {1366 loadSelectionData(result, 'db', key, main, table_, nr_);1367 }1368 else1369 {1370 loadSelectionData(false, 'db', key, main, table_, nr_);1371 }1372 })1373}1374function loadSelectionData(result, type, key, main, table_, nr_)1375{1376 if (main)1377 {1378 var textArea = 'textarea#jform_'+key+'_selection';1379 }1380 else 1381 {1382 var textArea = 'textarea#jform_join_'+type+'_table'+table_+'_join_'+type+'_table'+key+nr_+'_selection';1383 }1384 // no update the text area1385 if (result)1386 {1387 jQuery(textArea).val(result);1388 }1389 else1390 {1391 jQuery(textArea).val('');1392 }1393}1394function updateSubItems(fieldName, fieldNr, table_, nr_){1395 if(jQuery('#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_'+fieldName+'_table').length) {1396 jQuery('#adminForm').on('change', '#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_'+fieldName+'_table',function (e) {1397 e.preventDefault();1398 // get options1399 var value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_"+fieldName+"_table option:selected").val();1400 var as_value2 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_as option:selected").val();1401 var row_value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_row_type option:selected").val();1402 if (fieldName === 'view') {1403 getViewTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);1404 } else {1405 getDbTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);1406 }1407 });1408 jQuery('#adminForm').on('change', '#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_as',function (e) {1409 e.preventDefault();1410 // get options1411 var value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_"+fieldName+"_table option:selected").val();1412 var as_value2 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_as option:selected").val();1413 var row_value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_row_type option:selected").val();1414 if (fieldName === 'view') {1415 getViewTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);1416 } else {1417 getDbTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);1418 }1419 });1420 jQuery('#adminForm').on('change', '#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_row_type',function (e) {1421 e.preventDefault();1422 // get options1423 var value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_"+fieldName+"_table option:selected").val();1424 var as_value2 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_as option:selected").val();1425 var row_value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_row_type option:selected").val();1426 if (fieldName === 'view') {1427 getViewTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);1428 } else {1429 getDbTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);1430 }1431 });1432 }1433}1434function getDynamicScripts_server(typpe){1435 var getUrl = "index.php?option=com_componentbuilder&task=ajax.getDynamicScripts&format=json&vdm="+vastDevMod;1436 if(token.length > 0 && typpe.length > 0){1437 var request = 'token='+token+'&type='+typpe;1438 }1439 return jQuery.ajax({1440 type: 'GET',1441 url: getUrl,1442 dataType: 'jsonp',1443 data: request,1444 jsonp: 'callback'1445 });1446}1447function getDynamicScripts(id){1448 if (1 == id) {1449 // get the current values1450 var current_router_parse = jQuery('textarea#jform_php_router_parse').val();1451 // set the router parse method script1452 if(current_router_parse.length == 0){1453 getDynamicScripts_server('routerparse').done(function(result) {1454 if(result){1455 jQuery('textarea#jform_php_router_parse').val(result);1456 }1457 });1458 }1459 }...

Full Screen

Full Screen

test.js

Source:test.js Github

copy

Full Screen

...64 const mime = new Mime({65 'TEXT/UPPER': ['UP'],66 'text/lower': ['low'],67 });68 assert.equal(mime.getType('test.up'), 'text/upper');69 assert.equal(mime.getType('test.UP'), 'text/upper');70 assert.equal(mime.getType('test.low'), 'text/lower');71 assert.equal(mime.getType('test.LOW'), 'text/lower');72 assert.equal(mime.getExtension('text/upper'), 'up');73 assert.equal(mime.getExtension('text/lower'), 'low');74 assert.equal(mime.getExtension('TEXT/UPPER'), 'up');75 assert.equal(mime.getExtension('TEXT/LOWER'), 'low');76 });77 it('getType()', function() {78 // Upper/lower case79 assert.equal(mime.getType('text.txt'), 'text/plain');80 assert.equal(mime.getType('TEXT.TXT'), 'text/plain');81 // Bare extension82 assert.equal(mime.getType('txt'), 'text/plain');83 assert.equal(mime.getType('.txt'), 'text/plain');84 assert.strictEqual(mime.getType('.bogus'), null);85 assert.strictEqual(mime.getType('bogus'), null);86 // Non-sensical87 assert.strictEqual(mime.getType(null), null);88 assert.strictEqual(mime.getType(undefined), null);89 assert.strictEqual(mime.getType(42), null);90 assert.strictEqual(mime.getType({}), null);91 // File paths92 assert.equal(mime.getType('dir/text.txt'), 'text/plain');93 assert.equal(mime.getType('dir\\text.txt'), 'text/plain');94 assert.equal(mime.getType('.text.txt'), 'text/plain');95 assert.equal(mime.getType('.txt'), 'text/plain');96 assert.equal(mime.getType('txt'), 'text/plain');97 assert.equal(mime.getType('/path/to/page.html'), 'text/html');98 assert.equal(mime.getType('c:\\path\\to\\page.html'), 'text/html');99 assert.equal(mime.getType('page.html'), 'text/html');100 assert.equal(mime.getType('path/to/page.html'), 'text/html');101 assert.equal(mime.getType('path\\to\\page.html'), 'text/html');102 assert.strictEqual(mime.getType('/txt'), null);103 assert.strictEqual(mime.getType('\\txt'), null);104 assert.strictEqual(mime.getType('text.nope'), null);105 assert.strictEqual(mime.getType('/path/to/file.bogus'), null);106 assert.strictEqual(mime.getType('/path/to/json'), null);107 assert.strictEqual(mime.getType('/path/to/.json'), null);108 assert.strictEqual(mime.getType('/path/to/.config.json'), 'application/json');109 assert.strictEqual(mime.getType('.config.json'), 'application/json');110 });111 it('getExtension()', function() {112 assert.equal(mime.getExtension('text/html'), 'html');113 assert.equal(mime.getExtension(' text/html'), 'html');114 assert.equal(mime.getExtension('text/html '), 'html');115 assert.strictEqual(mime.getExtension('application/x-bogus'), null);116 assert.strictEqual(mime.getExtension('bogus'), null);117 assert.strictEqual(mime.getExtension(null), null);118 assert.strictEqual(mime.getExtension(undefined), null);119 assert.strictEqual(mime.getExtension(42), null);120 assert.strictEqual(mime.getExtension({}), null);121 });122});123describe('DB', function() {124 var diffs = [];125 after(function() {126 if (diffs.length) {127 console.log('\n[INFO] The following inconsistencies with MDN (https://goo.gl/lHrFU6) and/or mime-types (https://github.com/jshttp/mime-types) are expected:');128 diffs.forEach(function(d) {129 console.warn(130 ' ' + d[0]+ '[' + chalk.blue(d[1]) + '] = ' + chalk.red(d[2]) +131 ', mime[' + d[1] + '] = ' + chalk.green(d[3])132 );133 });134 }135 });136 it('Consistency', function() {137 for (var ext in this.types) {138 assert.equal(ext, this.extensions[this.types[ext]], '${ext} does not have consistent ext->type->ext mapping');139 }140 });141 it('MDN types', function() {142 // MDN types listed at https://goo.gl/lHrFU6143 var MDN = {144 aac: 'audio/aac',145 bin: 'application/octet-stream',146 css: 'text/css',147 csv: 'text/csv',148 doc: 'application/msword',149 docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',150 gif: 'image/gif',151 html: 'text/html',152 ico: 'image/vnd.microsoft.icon',153 jpg: 'image/jpeg',154 js: 'application/javascript',155 json: 'application/json',156 midi: 'audio/midi',157 mjs: 'application/javascript',158 mp3: 'audio/mpeg',159 mpeg: 'video/mpeg',160 oga: 'audio/ogg',161 ogv: 'video/ogg',162 otf: 'font/otf',163 png: 'image/png',164 pdf: 'application/pdf',165 rtf: 'application/rtf',166 svg: 'image/svg+xml',167 swf: 'application/x-shockwave-flash',168 tiff: 'image/tiff',169 ttf: 'font/ttf',170 txt: 'text/plain',171 wav: 'audio/wav',172 weba: 'audio/webm',173 webm: 'video/webm',174 webp: 'image/webp',175 woff: 'font/woff',176 xls: 'application/vnd.ms-excel',177 xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',178 xml: 'application/xml',179 zip: 'application/zip',180 '3gp': 'video/3gpp',181 };182 for (var ext in MDN) {183 var expected = MDN[ext];184 var actual = mime.getType(ext);185 if (actual !== expected) diffs.push(['MDN', ext, expected, actual]);186 }187 for (var ext in mimeTypes.types) {188 var expected = mimeTypes.types[ext];189 var actual = mime.getType(ext);190 if (actual !== expected) diffs.push(['mime-types', ext, expected, actual]);191 }192 });193 it('Specific types', function() {194 // Assortment of types we sanity check for good measure195 assert.equal(mime.getType('html'), 'text/html');196 assert.equal(mime.getType('js'), 'application/javascript');197 assert.equal(mime.getType('json'), 'application/json');198 assert.equal(mime.getType('rtf'), 'application/rtf');199 assert.equal(mime.getType('txt'), 'text/plain');200 assert.equal(mime.getType('xml'), 'application/xml');201 assert.equal(mime.getType('wasm'), 'application/wasm');202 });203 it('Specific extensions', function() {204 assert.equal(mime.getExtension('text/html;charset=UTF-8'), 'html');205 assert.equal(mime.getExtension('text/HTML; charset=UTF-8'), 'html');206 assert.equal(mime.getExtension('text/html; charset=UTF-8'), 'html');207 assert.equal(mime.getExtension('text/html; charset=UTF-8 '), 'html');208 assert.equal(mime.getExtension('text/html ; charset=UTF-8'), 'html');209 assert.equal(mime.getExtension(mime._types.text), 'txt');210 assert.equal(mime.getExtension(mime._types.htm), 'html');211 assert.equal(mime.getExtension('application/octet-stream'), 'bin');212 assert.equal(mime.getExtension('application/octet-stream '), 'bin');213 assert.equal(mime.getExtension(' text/html; charset=UTF-8'), 'html');214 assert.equal(mime.getExtension('text/html; charset=UTF-8 '), 'html');215 assert.equal(mime.getExtension('text/html; charset=UTF-8'), 'html');...

Full Screen

Full Screen

contract.js

Source:contract.js Github

copy

Full Screen

...4 //合同管理 获取所有合同5 getContractsForManagement: {6 api: params =>7 `/supplychainfinance-audit/${8 getType() === "0"9 ? "buyContractBasic"10 : getType() === "1"11 ? "saleContractBasic"12 : getType() === "2"?"storageContractBasic" :"largeBuyContractBasic"13 }/getContractsForManagement?${14 getType() === "0" 15 ? "buyOrdersId"16 : getType() === "1"17 ? "saleOrdersId"18 : getType() === "2"?"storageOrdersId" :"largeBuyOrdersId"19 }=${params.buyOrdersId}`,20 type: "GET"21 },22 //合同新建或编辑(基础信息)23 createContract: {24 api: () =>25 `/supplychainfinance-audit/${26 getType() === "0" 27 ? "buyContractBasic"28 : getType() === "1"29 ? "saleContractBasic"30 : getType() === "2"?"storageContractBasic" :"largeBuyContractBasic"31 }/createContract`,32 type: "POST"33 },34 //合同删除(基础信息)35 deleteContract: {36 api: () =>37 `/supplychainfinance-audit/${38 getType() === "0" 39 ? "buyContractBasic"40 : getType() === "1"41 ? "saleContractBasic"42 : getType() === "2"?"storageContractBasic" :"largeBuyContractBasic"43 }/deleteContract`,44 type: "POST"45 },46 //已签订合同相关接口47 //已签订合同列表48 getContractsSigned: {49 api: params =>50 `/supplychainfinance-audit/${51 getType() === "0" 52 ? "buyContractAttachment"53 : getType() === "1"54 ? "saleContractAttachment"55 : getType() === "2"?"storageContractAttachment" :"largeBuyContractAttachment"56 }/getContractsSigned?${57 getType() === "0"58 ? "buyOrdersId"59 : getType() === "1"60 ? "saleOrdersId"61 : getType() === "2"?"storageOrdersId" :"largeBuyOrdersId"62 }=${params.buyOrdersId}`,63 type: "GET"64 },65 //已签订合同删除66 deleteContractSigned: {67 api: () =>68 `/supplychainfinance-audit/${69 getType() === "0" 70 ? "buyContractAttachment"71 : getType() === "1"72 ? "saleContractAttachment"73 : getType() === "2"?"storageContractAttachment" :"largeBuyContractAttachment"74 }/deleteContractSigned`,75 type: "POST"76 },77 //已签订合同保存78 saveContractSigned: {79 api: () =>80 `/supplychainfinance-audit/${81 getType() === "0" 82 ? "buyContractAttachment"83 : getType() === "1"84 ? "saleContractAttachment"85 : getType() === "2"?"storageContractAttachment" :"largeBuyContractAttachment"86 }/saveContractSigned`,87 type: "POST"88 },89 //合同日志相关接口90 //根据订单业务id查询合同相关日志信息91 getContractLogInfo: {92 api: params =>93 `/supplychainfinance-audit/${94 getType() === "0" 95 ? "buyContractLog"96 : getType() === "1"97 ? "saleContractLog"98 : getType() === "2"?"storageContractLog" :"largeBuyContractLog"99 }/getContractLogInfo?orderId=${params.orderId}`,100 type: "GET"101 },102 //合同详情API103 //查看合同确认情况104 checkContractConfirmStatus: {105 api: params =>106 `/supplychainfinance-audit/${107 getType() === "0" 108 ? "buyContractBasic"109 : getType() === "1"110 ? "saleContractBasic"111 : getType() === "2"?"storageContractBasic" :"largeBuyContractBasic"112 }/checkContractConfirmStatus?${113 getType() === "0"114 ? "buyContractBasicId"115 : getType() === "1"116 ? "saleContractBasicId"117 : getType() === "2"?"storageContractBasicId" :"largeBuyContractBasicId"118 }=${params.buyContractBasicId}&userCompanyName=${119 params.userCompanyName120 }&roleId=${params.roleId}`,121 type: "GET"122 },123 //合同详情获取(合同word)124 getContractDetail: {125 api: params =>126 `/supplychainfinance-audit/${127 getType() === "0" 128 ? "buyContractBasic"129 : getType() === "1"130 ? "saleContractBasic"131 : getType() === "2"?"storageContractBasic" :"largeBuyContractBasic"132 }/getContractDetail?${133 getType() === "0"134 ? "buyContractBasicId"135 : getType() === "1"136 ? "saleContractBasicId"137 :getType() === "2"?"storageContractBasicId" :"largeBuyContractBasicId"138 }=${params.buyContractBasicId}&${139 getType() === "0"140 ? "buyOrdersId"141 : getType() === "1"142 ? "saleOrdersId"143 : getType() === "2"?"storageOrdersId" :"largeBuyOrdersId"144 }=${params.buyOrdersId}`,145 type: "GET"146 },147 //确认合同148 confirmContract: {149 api: () =>150 `/supplychainfinance-audit/${151 getType() === "0" 152 ? "buyContractBasic"153 : getType() === "1"154 ? "saleContractBasic"155 : getType() === "2"?"storageContractBasic" :"largeBuyContractBasic"156 }/confirmContract`,157 type: "POST"158 },159 //合同详情修改合同word文件160 updateContractURL: {161 api: () =>162 `/supplychainfinance-audit/${163 getType() === "0" 164 ? "buyContractBasic"165 : getType() === "1"166 ? "saleContractBasic"167 : getType() === "2"?"storageContractBasic" :"largeBuyContractBasic"168 }/updateContractURL`,169 type: "POST"170 },...

Full Screen

Full Screen

canvas.js

Source:canvas.js Github

copy

Full Screen

...26 * params.deg : 弧度,为正则顺时针旋转,为负则逆时针旋转27 * @returns28 */29function rotate(params){30 if(getType(params) == 'undefined' 31 || getType(params.x) != 'number' 32 || getType(params.y) != 'number' 33 || getType(params.center_x) != 'number' 34 || getType(params.center_y) != 'number' 35 || getType(params.deg) != 'number'){36 return {};37 }else{38 let x = params.x,39 y = params.y,40 center_x = params.center_x,41 center_y = params.center_y,42 deg = params.deg;43 let new_x = (x - center_x) * Math.cos(deg) - (y - center_y) * Math.sin(deg) + center_x,44 new_y = (x - center_x) * Math.sin(deg) + (y - center_y) * Math.cos(deg) + center_y;45 params.x = new_x;46 params.y = new_y;47 return params;48 } 49}50/**51 * 每一帧的动画52 * @param params53 * params.x : 初始位置的x坐标54 * params.y : 初始位置的y坐标55 * params.del : 初始位置的旋转弧度56 * params.zoom : 初始位置的缩放倍率57 * @param animate_params58 * animate_params.vx : x方向位移59 * animate_params.vy : y方向位移60 * animate_params.pal : 角速度,正为顺时针61 * animate_params.scale : 缩放速度62 * @returns 返回一帧之后的绘制参数63 */64function change_quiescence(params, animate_params){65 var _default = {66 vx : 0,67 vy : 0,68 pal : 0,69 scale : 070 };71 if(getType(params.x) != 'number' || getType(params.y) != 'number' || getType(params.deg) != 'number' && getType(params.deg) != 'undefined' || getType(params.zoom) != 'number'){72 return {};73 }74 var vx = getType(animate_params.vx) != 'number' ? _default.vx : animate_params.vx,75 vy = getType(animate_params.vy) != 'number' ? _default.vy : animate_params.vy,76 pal = getType(animate_params.pal) != 'number' ? _default.pal : animate_params.pal,77 scale = getType(animate_params.scale) != 'number' ? _default.scale : animate_params.scale;78 params.x += vx;79 params.y += vy;80 params.deg += pal;81 params.zoom += scale;82 return params;83}84/**85 * 改变每一帧的运动状态参数86 * @param animate_params87 * animate_params.vx : x方向位移88 * animate_params.vy : y方向位移89 * animate_params.pal : 角速度,正为顺时针90 * animate_params.scale : 缩放速度91 * @param translate_params92 * translate_params.ax : x方向加速度93 * translate_params.ay : y方向加速度94 * translate_params.apal : 角加速度95 * translate_params.ascale : 缩放加速度96 * @returns97 */98function translate_animate_state(animate_params, translate_params){99 var _default = {100 ax : 0,101 ay : 0,102 apal : 0,103 ascale : 0104 };105 if(getType(animate_params.vx) != 'number' || getType(animate_params.vy) != 'number' || getType(animate_params.pal) != 'number' || getType(animate_params.scale) != 'number'){106 return {};107 }108 var ax = getType(translate_params.ax) != 'number' ? _default.ax : translate_params.ax,109 ay = getType(translate_params.ay) != 'number' ? _default.ay : translate_params.ay,110 apal = getType(translate_params.apal) != 'number' ? _default.apal : translate_params.apal,111 ascale = getType(translate_params.ascale) != 'number' ? _default.ascale : translate_params.ascale;112 animate_params.vx += ax;113 animate_params.vy += ay;114 animate_params.pal += apal;115 animate_params.scale += ascale;116 return animate_params;117}118/**119 * 获取随机颜色120 * @returns {String}121 */122function randomColor() {123 var r = Math.floor(Math.random() * 256);124 var g = Math.floor(Math.random() * 256);125 var b = Math.floor(Math.random() * 256);...

Full Screen

Full Screen

getType.spec.js

Source:getType.spec.js Github

copy

Full Screen

1allege.test('获取类型-基本类型',function(handler) {2 handler.deepEqual(tool.getType(), ["Basic", "Undefined"], '');3 handler.deepEqual(tool.getType(undefined), ["Basic", "Undefined"], 'undefined');4 handler.deepEqual(tool.getType(null), ["Basic", "Null"], 'null');5 handler.deepEqual(tool.getType(true), ["Basic", "Boolean"], 'true');6 handler.deepEqual(tool.getType(false), ["Basic", "Boolean"], 'false');7 handler.deepEqual(tool.getType(-1), ["Basic", "Number"], '-1');8 handler.deepEqual(tool.getType(0), ["Basic", "Number"], '0');9 handler.deepEqual(tool.getType(1), ["Basic", "Number"], '1');10 handler.deepEqual(tool.getType(""), ["Basic", "String"], '""');11 handler.deepEqual(tool.getType("str"), ["Basic", "String"], '"str"');12 handler.deepEqual(tool.getType(Symbol()), ["Basic", "Symbol"], 'Symbol()');13});14allege.test('获取类型-基本类型(引用类型)',function(handler) {15 handler.deepEqual(tool.getType(new Number(-1)), ["Object", "Number"], 'new Number(-1)');16 handler.deepEqual(tool.getType(new Number(0)), ["Object", "Number"], 'new Number(0)');17 handler.deepEqual(tool.getType(new Number(1)), ["Object", "Number"], 'new Number(1)');18 handler.deepEqual(tool.getType(new String("")), ["Object", "String"], 'new String("")');19 handler.deepEqual(tool.getType(new String("str")), ["Object", "String"], 'new String("str")');20});21allege.test('获取类型-引用类型',function(handler) {22 handler.deepEqual(tool.getType(function () { }), ["Object", "Function"], 'function(){}');23 handler.deepEqual(tool.getType([]), ["Object", "Array"], '[]');24 handler.deepEqual(tool.getType(new Array(1)), ["Object", "Array"], 'new Array(1)');25 handler.deepEqual(tool.getType(new Error()), ["Object", "Error"], 'new Error()');26 handler.deepEqual(tool.getType({}), ["Object", "Plain"], '{}');27 handler.deepEqual(tool.getType(new Object), ["Object", "Plain"], 'new Object()');28});29allege.test('获取类型-结点类型',function(handler) {30 var div = document.getElementsByTagName('div')[0];31 handler.deepEqual(tool.getType(div), ["Object", "Element"]);...

Full Screen

Full Screen

Math3Node.js

Source:Math3Node.js Github

copy

Full Screen

...14THREE.Math3Node.FACEFORWARD = 'faceforward';15THREE.Math3Node.prototype = Object.create( THREE.TempNode.prototype );16THREE.Math3Node.prototype.constructor = THREE.Math3Node;17THREE.Math3Node.prototype.getType = function( builder ) {18 var a = builder.getFormatLength( this.a.getType( builder ) );19 var b = builder.getFormatLength( this.b.getType( builder ) );20 var c = builder.getFormatLength( this.c.getType( builder ) );21 if ( a > b && a > c ) return this.a.getType( builder );22 else if ( b > c ) return this.b.getType( builder );23 return this.c.getType( builder );24};25THREE.Math3Node.prototype.generate = function( builder, output ) {26 var material = builder.material;27 var type = this.getType( builder );28 var a, b, c,29 al = builder.getFormatLength( this.a.getType( builder ) ),30 bl = builder.getFormatLength( this.b.getType( builder ) ),31 cl = builder.getFormatLength( this.c.getType( builder ) )32 // optimzer33 switch ( this.method ) {34 case THREE.Math3Node.REFRACT:35 a = this.a.build( builder, type );36 b = this.b.build( builder, type );37 c = this.c.build( builder, 'fv1' );38 break;39 case THREE.Math3Node.MIX:40 a = this.a.build( builder, type );41 b = this.b.build( builder, type );42 c = this.c.build( builder, cl == 1 ? 'fv1' : type );43 break;44 default:45 a = this.a.build( builder, type );...

Full Screen

Full Screen

getType.test.js

Source:getType.test.js Github

copy

Full Screen

1import tape from "tape"2import getType from "../src/getType"3tape("\"getType\" can handle native and non-native type lookup", t => {4 t.equal(getType(null), "null")5 t.equal(getType(undefined), "undefined")6 t.equal(getType(false), "Boolean")7 t.equal(getType(Symbol("Ƭ̵̬̊")), "Symbol")8 t.equal(getType(0), "Number")9 t.equal(getType(" "), "String")10 t.equal(getType(new Int8Array()), "Int8Array")11 t.equal(getType(new Uint8Array()), "Uint8Array")12 t.equal(getType(new Uint8ClampedArray()), "Uint8ClampedArray")13 t.equal(getType(new Int16Array()), "Int16Array")14 t.equal(getType(new Uint16Array()), "Uint16Array")15 t.equal(getType(new Int32Array()), "Int32Array")16 t.equal(getType(new Float32Array()), "Float32Array")17 t.equal(getType(new Float64Array()), "Float64Array")18 t.equal(getType(new Set()), "Set")19 t.equal(getType(new WeakSet()), "WeakSet")20 t.equal(getType(Object.create(null)), "Object")21 t.equal(getType({}), "Object")22 t.equal(getType(new Map()), "Map")23 t.equal(getType(new WeakMap()), "WeakMap")24 t.end()...

Full Screen

Full Screen

typeof.js

Source:typeof.js Github

copy

Full Screen

1function getType(v) {2 return typeof v;3}4function f() {5 for (var i=0; i<100; i++) {6 assertEq(getType({}), "object");7 assertEq(getType(Math.abs), "function");8 assertEq(getType(10), "number");9 assertEq(getType(Math.PI), "number");10 assertEq(getType(true), "boolean");11 assertEq(getType(""), "string");12 assertEq(getType(null), "object");13 assertEq(getType(undefined), "undefined");14 }15}...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const { Page } = require('playwright');2Page.prototype.getType = async function (selector) {3 const element = await this.$(selector);4 const type = await this.evaluate(element => element.getAttribute('type'), element);5 return type;6};7const { test, expect } = require('@playwright/test');8test('test', async ({ page }) => {9 await page.waitForSelector('#iframeResult');10 const frame = page.frame({ name: 'iframeResult' });11 await frame.click('#vehicle1');12 const type = await frame.getType('#vehicle1');13 expect(type).toBe('checkbox');14});

Full Screen

Using AI Code Generation

copy

Full Screen

1const { getType } = require('playwright-core/lib/utils/utils');2console.log(getType('test'));3console.log(getType(1));4console.log(getType({}));5console.log(getType([]));6console.log(getType(null));7console.log(getType(undefined));8console.log(getType(true));9const { getType } = require('playwright-core/lib/utils/utils');10console.log(getType('test'));11const { getType } = require('playwright-core/lib/utils/utils');12console.log(getType(1));13const { getType } = require('playwright-core/lib/utils/utils');14console.log(getType({}));15const { getType } = require('playwright-core/lib/utils/utils');16console.log(getType([]));17const { getType } = require('playwright-core/lib/utils/utils');18console.log(getType(null));19const { getType } = require('playwright-core/lib/utils/utils');20console.log(getType(undefined));21const { getType } = require('playwright-core/lib/utils/utils');22console.log(getType(true));

Full Screen

Using AI Code Generation

copy

Full Screen

1const { Playwright } = require('@playwright/test');2const { Type } = Playwright;3console.log(Type);4const { Playwright } = require('@playwright/test');5const { Type } = Playwright;6console.log(Type);7const { Playwright } = require('@playwright/test');8const { Type } = Playwright;9console.log(Type);10const { Playwright } = require('@playwright/test');11const { Type } = Playwright;12console.log(Type);13const { Playwright } = require('@playwright/test');14const { Type } = Playwright;15console.log(Type);16const { Playwright } = require('@playwright/test');17const { Type } = Playwright;18console.log(Type);19const { Playwright } = require('@playwright/test');20const { Type } = Playwright;21console.log(Type);22const { Playwright } = require('@playwright/test');23const { Type } = Playwright;24console.log(Type);25const { Playwright } = require('@playwright/test');26const { Type } = Playwright;27console.log(Type);28const { Playwright } = require('@playwright/test');29const { Type } = Playwright;30console.log(Type);31const { Playwright } = require('@playwright/test');32const { Type } = Playwright;33console.log(Type);34const { Playwright } = require('@playwright/test');35const { Type } = Playwright;36console.log(Type);37const { Playwright } =

Full Screen

Using AI Code Generation

copy

Full Screen

1const { Playwright } = require('playwright-core');2console.log(Playwright.prototype.getType());3const { Playwright } = require('playwright-core');4console.log(Playwright.prototype._instrumentation);5console.log(Playwright.prototype._instrumentation._instrumentation);6console.log(Playwright.prototype._instrumentation._instrumentation._reporter);7console.log(Playwright.prototype._instrumentation._instrumentation._reporter._reporters);8console.log(Playwright.prototype._instrumentation._instrumentation._reporter._reporters[0]);9console.log(Playwright.prototype._instrumentation._instrumentation._reporter._reporters[0]._reporters);10console.log(Playwright.prototype._instrumentation._instrumentation._reporter._reporters[0]._reporters[0]);11console.log(Playwright.prototype._instrumentation._instrumentation._reporter._reporters[0]._reporters[0]._reporters);12console.log(Playwright.prototype._instrumentation._instrumentation._reporter._reporters[0]._reporters[0]._reporters[0]);13console.log(Playwright.prototype._instrumentation._instrumentation._reporter._reporters[0]._reporters[0]._reporters[0]._reporters);14console.log(Playwright.prototype._instrumentation._instrumentation._reporter._reporters[0]._reporters[0]._reporters[0]._reporters[0]);15console.log(Playwright.prototype._instrumentation._instrumentation._reporter._reporters[0]._reporters[0]._reporters[0]._reporters[0]._reporters);16console.log(Playwright.prototype._instrumentation._instrumentation._reporter._reporters[0]._reporters[0]._reporters[0]._reporters[0]._reporters[0]);17console.log(Playwright.prototype._instrumentation._instrumentation._reporter._reporters[0]._reporters[0]._reporters[0]._reporters[0]._reporters[0]._reporters);18console.log(Playwright.prototype._instrumentation._instrumentation._reporter._reporters[0]._reporters[0]._reporters[0]._reporters[0]._reporters[0]._reporters[0]);19console.log(Playwright.prototype._instrumentation._instrumentation._reporter._reporters[0]._reporters[0]._report

Full Screen

Using AI Code Generation

copy

Full Screen

1const { getType } = require('playwright/lib/server/frames');2const { Page } = require('playwright/lib/server/page');3Page.prototype.getType = async function(selector, text, options = {}) {4 const { delay } = options;5 const frame = this.mainFrame();6 const elementHandle = await frame.$(selector);7 await elementHandle.focus();8 await elementHandle.type(text, { delay });9 await elementHandle.dispose();10};11(async () => {12 const playwright = require('playwright');13 const browser = await playwright['chromium'].launch();14 const context = await browser.newContext();15 const page = await context.newPage();16 await page.getType('input[title="Search"]', 'Hello World');17 await page.screenshot({ path: 'example.png' });18 await browser.close();19})();

Full Screen

Using AI Code Generation

copy

Full Screen

1const { PlaywrightInternal } = require('playwright');2const page = await browser.newPage();3console.log(PlaywrightInternal.getType(page));4const { PlaywrightInternal } = require('playwright');5const browser = await chromium.launch();6console.log(PlaywrightInternal.getType(browser));7const { PlaywrightInternal } = require('playwright');8const context = await browser.newContext();9console.log(PlaywrightInternal.getType(context));10const { PlaywrightInternal } = require('playwright');11const frame = await page.mainFrame();12console.log(PlaywrightInternal.getType(frame));13const { PlaywrightInternal } = require('playwright');14const elementHandle = await page.$('div');15console.log(PlaywrightInternal.getType(elementHandle));16const { PlaywrightInternal } = require('playwright');17const jsHandle = await page.evaluateHandle(() => 5);18console.log(PlaywrightInternal.getType(jsHandle));19const { PlaywrightInternal } = require('playwright');20const consoleMessage = await page.evaluateHandle(() => console.log('hello'));21console.log(PlaywrightInternal.getType(consoleMessage));22const { PlaywrightInternal } = require('playwright');23const dialog = await page.$eval('div', () => alert('hello'));24console.log(PlaywrightInternal.getType(dialog));25const { PlaywrightInternal } = require('playwright');26const download = await page.$eval('div', () => download('hello'));27console.log(PlaywrightInternal.getType(download));28const { Play

Full Screen

Using AI Code Generation

copy

Full Screen

1const { Page } = require('playwright/lib/page');2const myPage = new Page();3console.log(myPage.getType());4const { Page } = require('playwright/lib/page');5const myPage = new Page();6console.log(myPage.getType());

Full Screen

Using AI Code Generation

copy

Full Screen

1const { Playwright } = require('playwright');2const { ObjectType } = Playwright;3const { assert } = require('chai');4const { getTestState } = require('../../utils');5const { it, describe } = getTestState();6describe('Playwright Internal API', () => {7 it('should use getType method of Playwright Internal API', async () => {8 assert.equal(ObjectType.Object, Playwright.getType({}));9 assert.equal(ObjectType.String, Playwright.getType(''));10 assert.equal(ObjectType.Number, Playwright.getType(0));11 assert.equal(ObjectType.Boolean, Playwright.getType(true));12 assert.equal(ObjectType.Undefined, Playwright.getType(undefined));13 assert.equal(ObjectType.Function, Playwright.getType(() => {}));14 assert.equal(ObjectType.Array, Playwright.getType([]));15 assert.equal(ObjectType.Date, Playwright.getType(new Date()));16 assert.equal(ObjectType.RegExp, Playwright.getType(new RegExp('')));17 assert.equal(ObjectType.Error, Playwright.getType(new Error()));18 assert.equal(ObjectType.Map, Playwright.getType(new Map()));19 assert.equal(ObjectType.Set, Playwright.getType(new Set()));20 assert.equal(ObjectType.WeakMap, Playwright.getType(new WeakMap()));21 assert.equal(ObjectType.WeakSet, Playwright.getType(new WeakSet()));22 assert.equal(ObjectType.Promise, Playwright.getType(new Promise(() => {})));23 assert.equal(ObjectType.Generator, Playwright.getType(function*() {}));24 assert.equal(ObjectType.GeneratorFunction, Playwright.getType(function*() {}));25 assert.equal(ObjectType.AsyncFunction, Playwright.getType(async () => {}));26 assert.equal(ObjectType.TypedArray, Playwright.getType(new Uint8Array()));27 assert.equal(ObjectType.ArrayBuffer, Playwright.getType(new ArrayBuffer()));28 assert.equal(ObjectType.DataView, Playwright.getType(new DataView(new ArrayBuffer())));29 });30});31const { Playwright } = require('playwright');32const { assert } = require('chai');33const { getTestState } = require('../../utils');34const { it, describe } = getTestState();35describe('Playwright Internal API', () => {36 it('should use getExceptionMessage method of Playwright Internal API', async () => {37 const exception = new Error('Error message');38 at Object.<anonymous> (/Users/aslushnik

Full Screen

Playwright tutorial

LambdaTest’s Playwright tutorial will give you a broader idea about the Playwright automation framework, its unique features, and use cases with examples to exceed your understanding of Playwright testing. This tutorial will give A to Z guidance, from installing the Playwright framework to some best practices and advanced concepts.

Chapters:

  1. What is Playwright : Playwright is comparatively new but has gained good popularity. Get to know some history of the Playwright with some interesting facts connected with it.
  2. How To Install Playwright : Learn in detail about what basic configuration and dependencies are required for installing Playwright and run a test. Get a step-by-step direction for installing the Playwright automation framework.
  3. Playwright Futuristic Features: Launched in 2020, Playwright gained huge popularity quickly because of some obliging features such as Playwright Test Generator and Inspector, Playwright Reporter, Playwright auto-waiting mechanism and etc. Read up on those features to master Playwright testing.
  4. What is Component Testing: Component testing in Playwright is a unique feature that allows a tester to test a single component of a web application without integrating them with other elements. Learn how to perform Component testing on the Playwright automation framework.
  5. Inputs And Buttons In Playwright: Every website has Input boxes and buttons; learn about testing inputs and buttons with different scenarios and examples.
  6. Functions and Selectors in Playwright: Learn how to launch the Chromium browser with Playwright. Also, gain a better understanding of some important functions like “BrowserContext,” which allows you to run multiple browser sessions, and “newPage” which interacts with a page.
  7. Handling Alerts and Dropdowns in Playwright : Playwright interact with different types of alerts and pop-ups, such as simple, confirmation, and prompt, and different types of dropdowns, such as single selector and multi-selector get your hands-on with handling alerts and dropdown in Playright testing.
  8. Playwright vs Puppeteer: Get to know about the difference between two testing frameworks and how they are different than one another, which browsers they support, and what features they provide.
  9. Run Playwright Tests on LambdaTest: Playwright testing with LambdaTest leverages test performance to the utmost. You can run multiple Playwright tests in Parallel with the LammbdaTest test cloud. Get a step-by-step guide to run your Playwright test on the LambdaTest platform.
  10. Playwright Python Tutorial: Playwright automation framework support all major languages such as Python, JavaScript, TypeScript, .NET and etc. However, there are various advantages to Python end-to-end testing with Playwright because of its versatile utility. Get the hang of Playwright python testing with this chapter.
  11. Playwright End To End Testing Tutorial: Get your hands on with Playwright end-to-end testing and learn to use some exciting features such as TraceViewer, Debugging, Networking, Component testing, Visual testing, and many more.
  12. Playwright Video Tutorial: Watch the video tutorials on Playwright testing from experts and get a consecutive in-depth explanation of Playwright automation testing.

Run Playwright Internal automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful