How to use elements1 method in ng-mocks

Best JavaScript code snippet using ng-mocks

createItems.js

Source:createItems.js Github

copy

Full Screen

1function createItems() {2 //First greek elements slot.3 createEle("gElements1", "gre1t1", 1, "images/blank.png", 0, "greek", "true");4 createEle("gElements1", "gre1t2", 1, "images/greek/fire.png", 1, "greek", "true");5 createEle("gElements1", "gre1t3", 1, "images/greek/water.png", 2, "greek", "true");6 createEle("gElements1", "gre1t4", 1, "images/greek/earth.png", 3, "greek", "true");7 createEle("gElements1", "gre1t5", 1, "images/greek/air.png", 4, "greek", "true");8 createBre("gElements1");9 createEle("gElements1", "gre1t6", 1, "images/greek/steam.png", 5, "greek", "false");10 //Second greek elements slot.11 createEle("gElements2", "gre2t1", 2, "images/blank.png", 0, "greek", "true");12 createEle("gElements2", "gre2t2", 2, "images/greek/fire.png", 1, "greek", "true");13 createEle("gElements2", "gre2t3", 2, "images/greek/water.png", 2, "greek", "true");14 createEle("gElements2", "gre2t4", 2, "images/greek/earth.png", 3, "greek", "true");15 createEle("gElements2", "gre2t5", 2, "images/greek/air.png", 4, "greek", "true");16 createBre("gElements2");17 createEle("gElements2", "gre2t6", 2, "images/greek/steam.png", 5, "greek", "false");18 //First american elements slot.19 createEle("aElements1", "ame1t1", 3, "images/blank.png", 0, "greek", "true");20 createEle("aElements1", "ame1t2", 3, "images/american/hydrogen.png", 1, "american", "false");21 createEle("aElements1", "ame1t3", 3, "images/american/helium.png", 2, "american", "false");22 createEle("aElements1", "ame1t4", 3, "images/american/lithium.png", 3, "american", "false");23 createEle("aElements1", "ame1t5", 3, "images/american/beryllium.png", 4, "american", "false");24 createBre("aElements1");25 createEle("aElements1", "ame1t6", 3, "images/american/boron.png", 5, "american", "false");26 createEle("aElements1", "ame1t7", 3, "images/american/carbon.png", 6, "american", "false");27 createEle("aElements1", "ame1t8", 3, "images/american/nitrogen.png", 7, "american", "false");28 createEle("aElements1", "ame1t9", 3, "images/american/oxygen.png", 8, "american", "false");29 createEle("aElements1", "ame1t10", 3, "images/american/fluorine.png", 9, "american", "false");30 createBre("aElements1");31 createEle("aElements1", "ame1t11", 3, "images/american/neon.png", 10, "american", "false");32 createEle("aElements1", "ame1t12", 3, "images/american/sodium.png", 11, "american", "false");33 createEle("aElements1", "ame1t13", 3, "images/american/magnesium.png", 12, "american", "false");34 createEle("aElements1", "ame1t14", 3, "images/american/aluminium.png", 13, "american", "false");35 createEle("aElements1", "ame1t15", 3, "images/american/silocon.png", 14, "american", "false");36 createBre("aElements1");37 createEle("aElements1", "ame1t16", 3, "images/american/phosphorus.png", 15, "american", "false");38 createEle("aElements1", "ame1t17", 3, "images/american/sulfur.png", 16, "american", "false");39 createEle("aElements1", "ame1t18", 3, "images/american/chlorine.png", 17, "american", "false");40 createEle("aElements1", "ame1t19", 3, "images/american/argon.png", 18, "american", "false");41 createEle("aElements1", "ame1t20", 3, "images/american/potassium.png", 19, "american", "false");42 createBre("aElements1");43 createEle("aElements1", "ame1t21", 3, "images/american/calcium.png", 20, "american", "false");44 createEle("aElements1", "ame1t22", 3, "images/american/scandium.png", 21, "american", "false");45 createEle("aElements1", "ame1t23", 3, "images/american/titanium.png", 22, "american", "false");46 createEle("aElements1", "ame1t24", 3, "images/american/vanadium.png", 23, "american", "false");47 createEle("aElements1", "ame1t25", 3, "images/american/chromium.png", 24, "american", "false");48 createBre("aElements1");49 createEle("aElements1", "ame1t26", 3, "images/american/manganese.png", 25, "american", "false");50 createEle("aElements1", "ame1t27", 3, "images/american/iron.png", 26, "american", "false");51 createEle("aElements1", "ame1t28", 3, "images/american/cobalt.png", 27, "american", "false");52 createEle("aElements1", "ame1t29", 3, "images/american/nickel.png", 28, "american", "false");53 createEle("aElements1", "ame1t30", 3, "images/american/copper.png", 29, "american", "false");54 createBre("aElements1");55 createEle("aElements1", "ame1t31", 3, "images/american/zinc.png", 30, "american", "false");56 createEle("aElements1", "ame1t32", 3, "images/american/gallium.png", 31, "american", "false");57 createEle("aElements1", "ame1t33", 3, "images/american/germanium.png", 32, "american", "false");58 createEle("aElements1", "ame1t34", 3, "images/american/arsenic.png", 33, "american", "false");59 createEle("aElements1", "ame1t35", 3, "images/american/selenium.png", 34, "american", "false");60 createBre("aElements1");61 createEle("aElements1", "ame1t36", 3, "images/american/bromine.png", 35, "american", "false");62 createEle("aElements1", "ame1t37", 3, "images/american/krypton.png", 36, "american", "false");63 createEle("aElements1", "ame1t38", 3, "images/american/rubidium.png", 37, "american", "false");64 createEle("aElements1", "ame1t39", 3, "images/american/strontium.png", 38, "american", "false");65 createEle("aElements1", "ame1t40", 3, "images/american/yttrium.png", 39, "american", "false");66 createBre("aElements1");67 createEle("aElements1", "ame1t41", 3, "images/american/zirconium.png", 40, "american", "false");68 createEle("aElements1", "ame1t42", 3, "images/american/niobium.png", 41, "american", "false");69 createEle("aElements1", "ame1t43", 3, "images/american/molybdenium.png", 42, "american", "false");70 createEle("aElements1", "ame1t44", 3, "images/american/technetium.png", 43, "american", "false");71 createEle("aElements1", "ame1t45", 3, "images/american/ruthenium.png", 44, "american", "false");72 createBre("aElements1");73 createEle("aElements1", "ame1t46", 3, "images/american/rhodium.png", 45, "american", "false");74 createEle("aElements1", "ame1t47", 3, "images/american/palladium.png", 46, "american", "false");75 createEle("aElements1", "ame1t48", 3, "images/american/silver.png", 47, "american", "false");76 createEle("aElements1", "ame1t49", 3, "images/american/cadmium.png", 48, "american", "false");77 createEle("aElements1", "ame1t50", 3, "images/american/indium.png", 49, "american", "false");78 createBre("aElements1");79 createEle("aElements1", "ame1t51", 3, "images/american/tin.png", 50, "american", "false");80 createEle("aElements1", "ame1t52", 3, "images/american/antimony.png", 51, "american", "false");81 createEle("aElements1", "ame1t53", 3, "images/american/tellurium.png", 52, "american", "false");82 createEle("aElements1", "ame1t54", 3, "images/american/iodine.png", 53, "american", "false");83 createEle("aElements1", "ame1t55", 3, "images/american/xenon.png", 54, "american", "false");84 createBre("aElements1");85 createEle("aElements1", "ame1t56", 3, "images/american/caesium.png", 55, "american", "false");86 createEle("aElements1", "ame1t57", 3, "images/american/barium.png", 56, "american", "false");87 createEle("aElements1", "ame1t58", 3, "images/american/lanthanium.png", 57, "american", "false");88 createEle("aElements1", "ame1t59", 3, "images/american/cerium.png", 58, "american", "false");89 createEle("aElements1", "ame1t60", 3, "images/american/praseodymium.png", 59, "american", "false");90 createBre("aElements1");91 createEle("aElements1", "ame1t61", 3, "images/american/neodymium.png", 60, "american", "false");92 createEle("aElements1", "ame1t62", 3, "images/american/promethium.png", 61, "american", "false");93 createEle("aElements1", "ame1t63", 3, "images/american/samarium.png", 62, "american", "false");94 createEle("aElements1", "ame1t64", 3, "images/american/europium.png", 63, "american", "false");95 createEle("aElements1", "ame1t65", 3, "images/american/gadolinium.png", 64, "american", "false");96 createBre("aElements1");97 createEle("aElements1", "ame1t66", 3, "images/american/terbium.png", 65, "american", "false");98 createEle("aElements1", "ame1t67", 3, "images/american/dysprosium.png", 66, "american", "false");99 createEle("aElements1", "ame1t68", 3, "images/american/holmium.png", 67, "american", "false");100 createEle("aElements1", "ame1t69", 3, "images/american/erbium.png", 68, "american", "false");101 createEle("aElements1", "ame1t70", 3, "images/american/thulium.png", 69, "american", "false");102 createBre("aElements1");103 createEle("aElements1", "ame1t71", 3, "images/american/ytterbium.png", 70, "american", "false");104 createEle("aElements1", "ame1t72", 3, "images/american/lutetium.png", 71, "american", "false");105 createEle("aElements1", "ame1t73", 3, "images/american/hafnium.png", 72, "american", "false");106 createEle("aElements1", "ame1t74", 3, "images/american/tantalum.png", 73, "american", "false");107 createEle("aElements1", "ame1t75", 3, "images/american/tungsten.png", 74, "american", "false");108 createBre("aElements1");109 createEle("aElements1", "ame1t76", 3, "images/american/rhenium.png", 75, "american", "false");110 createEle("aElements1", "ame1t77", 3, "images/american/osmium.png", 76, "american", "false");111 createEle("aElements1", "ame1t78", 3, "images/american/iridium.png", 77, "american", "false");112 createEle("aElements1", "ame1t79", 3, "images/american/platinum.png", 78, "american", "false");113 createEle("aElements1", "ame1t80", 3, "images/american/gold.png", 79, "american", "false");114 createBre("aElements1");115 createEle("aElements1", "ame1t81", 3, "images/american/mercury.png", 80, "american", "false");116 createEle("aElements1", "ame1t82", 3, "images/american/thallium.png", 81, "american", "false");117 createEle("aElements1", "ame1t83", 3, "images/american/lead.png", 82, "american", "false");118 createEle("aElements1", "ame1t84", 3, "images/american/bismuth.png", 83, "american", "false");119 createEle("aElements1", "ame1t85", 3, "images/american/polonium.png", 84, "american", "false");120 createBre("aElements1");121 createEle("aElements1", "ame1t86", 3, "images/american/astatine.png", 85, "american", "false");122 createEle("aElements1", "ame1t87", 3, "images/american/radon.png", 86, "american", "false");123 createEle("aElements1", "ame1t88", 3, "images/american/francium.png", 87, "american", "false");124 createEle("aElements1", "ame1t89", 3, "images/american/radium.png", 88, "american", "false");125 createEle("aElements1", "ame1t90", 3, "images/american/actinium.png", 89, "american", "false");126 createBre("aElements1");127 createEle("aElements1", "ame1t91", 3, "images/american/thorium.png", 90, "american", "false");128 createEle("aElements1", "ame1t92", 3, "images/american/protactinium.png", 91, "american", "false");129 createEle("aElements1", "ame1t93", 3, "images/american/uranium.png", 92, "american", "false");130 createEle("aElements1", "ame1t94", 3, "images/american/neptunium.png", 93, "american", "false");131 createEle("aElements1", "ame1t95", 3, "images/american/plutonium.png", 94, "american", "false");132 createBre("aElements1");133 createEle("aElements1", "ame1t96", 3, "images/american/americium.png", 95, "american", "false");134 createEle("aElements1", "ame1t97", 3, "images/american/curium.png", 96, "american", "false");135 createEle("aElements1", "ame1t98", 3, "images/american/berkelium.png", 97, "american", "false");136 createEle("aElements1", "ame1t99", 3, "images/american/californium.png", 98, "american", "false");137 createEle("aElements1", "ame1t100", 3, "images/american/einsteinium.png", 99, "american", "false");138 createBre("aElements1");139 createEle("aElements1", "ame1t101", 3, "images/american/fermium.png", 100, "american", "false");140 createEle("aElements1", "ame1t102", 3, "images/american/mendelevium.png", 101, "american", "false");141 createEle("aElements1", "ame1t103", 3, "images/american/nobelium.png", 102, "american", "false");142 createEle("aElements1", "ame1t104", 3, "images/american/lawrencium.png", 103, "american", "false");143 createEle("aElements1", "ame1t105", 3, "images/american/rutherfordium.png", 104, "american", "false");144 createBre("aElements1");145 createEle("aElements1", "ame1t106", 3, "images/american/dubnium.png", 105, "american", "false");146 createEle("aElements1", "ame1t107", 3, "images/american/seaborgium.png", 106, "american", "false");147 createEle("aElements1", "ame1t108", 3, "images/american/bohrium.png", 107, "american", "false");148 createEle("aElements1", "ame1t109", 3, "images/american/hassium.png", 108, "american", "false");149 createEle("aElements1", "ame1t110", 3, "images/american/meitnerium.png", 109, "american", "false");150 createBre("aElements1");151 createEle("aElements1", "ame1t111", 3, "images/american/darmstadtium.png", 110, "american", "false");152 createEle("aElements1", "ame1t112", 3, "images/american/roentgenium.png", 111, "american", "false");153 createEle("aElements1", "ame1t113", 3, "images/american/copernicium.png", 112, "american", "false");154 createEle("aElements1", "ame1t114", 3, "images/american/nihonium.png", 113, "american", "false");155 createEle("aElements1", "ame1t115", 3, "images/american/flerovium.png", 114, "american", "false");156 createBre("aElements1");157 createEle("aElements1", "ame1t116", 3, "images/american/moscovium.png", 115, "american", "false");158 createEle("aElements1", "ame1t117", 3, "images/american/livermorium.png", 116, "american", "false");159 createEle("aElements1", "ame1t118", 3, "images/american/tennessine.png", 117, "american", "false");160 createEle("aElements1", "ame1t119", 3, "images/american/oganesson.png", 118, "american", "false");161 //Second american elements slot.162 createEle("aElements2", "ame2t1", 4, "images/blank.png", 0, "greek", "true");163 createEle("aElements2", "ame2t2", 4, "images/american/hydrogen.png", 1, "american", "false");164 createEle("aElements2", "ame2t3", 4, "images/american/helium.png", 2, "american", "false");165 createEle("aElements2", "ame2t4", 4, "images/american/lithium.png", 3, "american", "false");166 createEle("aElements2", "ame2t5", 4, "images/american/beryllium.png", 4, "american", "false");167 createBre("aElements2");168 createEle("aElements2", "ame2t6", 4, "images/american/boron.png", 5, "american", "false");169 createEle("aElements2", "ame2t7", 4, "images/american/carbon.png", 6, "american", "false");170 createEle("aElements2", "ame2t8", 4, "images/american/nitrogen.png", 7, "american", "false");171 createEle("aElements2", "ame2t9", 4, "images/american/oxygen.png", 8, "american", "false");172 createEle("aElements2", "ame2t10", 4, "images/american/fluorine.png", 9, "american", "false");173 createBre("aElements2");174 createEle("aElements2", "ame2t11", 4, "images/american/neon.png", 10, "american", "false");175 createEle("aElements2", "ame2t12", 4, "images/american/sodium.png", 11, "american", "false");176 createEle("aElements2", "ame2t13", 4, "images/american/magnesium.png", 12, "american", "false");177 createEle("aElements2", "ame2t14", 4, "images/american/aluminium.png", 13, "american", "false");178 createEle("aElements2", "ame2t15", 4, "images/american/silocon.png", 14, "american", "false");179 createBre("aElements2");180 createEle("aElements2", "ame2t16", 4, "images/american/phosphorus.png", 15, "american", "false");181 createEle("aElements2", "ame2t17", 4, "images/american/sulfur.png", 16, "american", "false");182 createEle("aElements2", "ame2t18", 4, "images/american/chlorine.png", 17, "american", "false");183 createEle("aElements2", "ame2t19", 4, "images/american/argon.png", 18, "american", "false");184 createEle("aElements2", "ame2t20", 4, "images/american/potassium.png", 19, "american", "false");185 createBre("aElements2");186 createEle("aElements2", "ame2t21", 4, "images/american/calcium.png", 20, "american", "false");187 createEle("aElements2", "ame2t22", 4, "images/american/scandium.png", 21, "american", "false");188 createEle("aElements2", "ame2t23", 4, "images/american/titanium.png", 22, "american", "false");189 createEle("aElements2", "ame2t24", 4, "images/american/vanadium.png", 23, "american", "false");190 createEle("aElements2", "ame2t25", 4, "images/american/chromium.png", 24, "american", "false");191 createBre("aElements2");192 createEle("aElements2", "ame2t26", 4, "images/american/manganese.png", 25, "american", "false");193 createEle("aElements2", "ame2t27", 4, "images/american/iron.png", 26, "american", "false");194 createEle("aElements2", "ame2t28", 4, "images/american/cobalt.png", 27, "american", "false");195 createEle("aElements2", "ame2t29", 4, "images/american/nickel.png", 28, "american", "false");196 createEle("aElements2", "ame2t30", 4, "images/american/copper.png", 29, "american", "false");197 createBre("aElements2");198 createEle("aElements2", "ame2t31", 4, "images/american/zinc.png", 30, "american", "false");199 createEle("aElements2", "ame2t32", 4, "images/american/gallium.png", 31, "american", "false");200 createEle("aElements2", "ame2t33", 4, "images/american/germanium.png", 32, "american", "false");201 createEle("aElements2", "ame2t34", 4, "images/american/arsenic.png", 33, "american", "false");202 createEle("aElements2", "ame2t35", 4, "images/american/selenium.png", 34, "american", "false");203 createBre("aElements2");204 createEle("aElements2", "ame2t36", 4, "images/american/bromine.png", 35, "american", "false");205 createEle("aElements2", "ame2t37", 4, "images/american/krypton.png", 36, "american", "false");206 createEle("aElements2", "ame2t38", 4, "images/american/rubidium.png", 37, "american", "false");207 createEle("aElements2", "ame2t39", 4, "images/american/strontium.png", 38, "american", "false");208 createEle("aElements2", "ame2t40", 4, "images/american/yttrium.png", 39, "american", "false");209 createBre("aElements2");210 createEle("aElements2", "ame2t41", 4, "images/american/zirconium.png", 40, "american", "false");211 createEle("aElements2", "ame2t42", 4, "images/american/niobium.png", 41, "american", "false");212 createEle("aElements2", "ame2t43", 4, "images/american/molybdenium.png", 42, "american", "false");213 createEle("aElements2", "ame2t44", 4, "images/american/technetium.png", 43, "american", "false");214 createEle("aElements2", "ame2t45", 4, "images/american/ruthenium.png", 44, "american", "false");215 createBre("aElements2");216 createEle("aElements2", "ame2t46", 4, "images/american/rhodium.png", 45, "american", "false");217 createEle("aElements2", "ame2t47", 4, "images/american/palladium.png", 46, "american", "false");218 createEle("aElements2", "ame2t48", 4, "images/american/silver.png", 47, "american", "false");219 createEle("aElements2", "ame2t49", 4, "images/american/cadmium.png", 48, "american", "false");220 createEle("aElements2", "ame2t50", 4, "images/american/indium.png", 49, "american", "false");221 createBre("aElements2");222 createEle("aElements2", "ame2t51", 4, "images/american/tin.png", 50, "american", "false");223 createEle("aElements2", "ame2t52", 4, "images/american/antimony.png", 51, "american", "false");224 createEle("aElements2", "ame2t53", 4, "images/american/tellurium.png", 52, "american", "false");225 createEle("aElements2", "ame2t54", 4, "images/american/iodine.png", 53, "american", "false");226 createEle("aElements2", "ame2t55", 4, "images/american/xenon.png", 54, "american", "false");227 createBre("aElements2");228 createEle("aElements2", "ame2t56", 4, "images/american/caesium.png", 55, "american", "false");229 createEle("aElements2", "ame2t57", 4, "images/american/barium.png", 56, "american", "false");230 createEle("aElements2", "ame2t58", 4, "images/american/lanthanium.png", 57, "american", "false");231 createEle("aElements2", "ame2t59", 4, "images/american/cerium.png", 58, "american", "false");232 createEle("aElements2", "ame2t60", 4, "images/american/praseodymium.png", 59, "american", "false");233 createBre("aElements2");234 createEle("aElements2", "ame2t61", 4, "images/american/neodymium.png", 60, "american", "false");235 createEle("aElements2", "ame2t62", 4, "images/american/promethium.png", 61, "american", "false");236 createEle("aElements2", "ame2t63", 4, "images/american/samarium.png", 62, "american", "false");237 createEle("aElements2", "ame2t64", 4, "images/american/europium.png", 63, "american", "false");238 createEle("aElements2", "ame2t65", 4, "images/american/gadolinium.png", 64, "american", "false");239 createBre("aElements2");240 createEle("aElements2", "ame2t66", 4, "images/american/terbium.png", 65, "american", "false");241 createEle("aElements2", "ame2t67", 4, "images/american/dysprosium.png", 66, "american", "false");242 createEle("aElements2", "ame2t68", 4, "images/american/holmium.png", 67, "american", "false");243 createEle("aElements2", "ame2t69", 4, "images/american/erbium.png", 68, "american", "false");244 createEle("aElements2", "ame2t70", 4, "images/american/thulium.png", 69, "american", "false");245 createBre("aElements2");246 createEle("aElements2", "ame2t71", 4, "images/american/ytterbium.png", 70, "american", "false");247 createEle("aElements2", "ame2t72", 4, "images/american/lutetium.png", 71, "american", "false");248 createEle("aElements2", "ame2t73", 4, "images/american/hafnium.png", 72, "american", "false");249 createEle("aElements2", "ame2t74", 4, "images/american/tantalum.png", 73, "american", "false");250 createEle("aElements2", "ame2t75", 4, "images/american/tungsten.png", 74, "american", "false");251 createBre("aElements2");252 createEle("aElements2", "ame2t76", 4, "images/american/rhenium.png", 75, "american", "false");253 createEle("aElements2", "ame2t77", 4, "images/american/osmium.png", 76, "american", "false");254 createEle("aElements2", "ame2t78", 4, "images/american/iridium.png", 77, "american", "false");255 createEle("aElements2", "ame2t79", 4, "images/american/platinum.png", 78, "american", "false");256 createEle("aElements2", "ame2t80", 4, "images/american/gold.png", 79, "american", "false");257 createBre("aElements2");258 createEle("aElements2", "ame2t81", 4, "images/american/mercury.png", 80, "american", "false");259 createEle("aElements2", "ame2t82", 4, "images/american/thallium.png", 81, "american", "false");260 createEle("aElements2", "ame2t83", 4, "images/american/lead.png", 82, "american", "false");261 createEle("aElements2", "ame2t84", 4, "images/american/bismuth.png", 83, "american", "false");262 createEle("aElements2", "ame2t85", 4, "images/american/polonium.png", 84, "american", "false");263 createBre("aElements2");264 createEle("aElements2", "ame2t86", 4, "images/american/astatine.png", 85, "american", "false");265 createEle("aElements2", "ame2t87", 4, "images/american/radon.png", 86, "american", "false");266 createEle("aElements2", "ame2t88", 4, "images/american/francium.png", 87, "american", "false");267 createEle("aElements2", "ame2t89", 4, "images/american/radium.png", 88, "american", "false");268 createEle("aElements2", "ame2t90", 4, "images/american/actinium.png", 89, "american", "false");269 createBre("aElements2");270 createEle("aElements2", "ame2t91", 4, "images/american/thorium.png", 90, "american", "false");271 createEle("aElements2", "ame2t92", 4, "images/american/protactinium.png", 91, "american", "false");272 createEle("aElements2", "ame2t93", 4, "images/american/uranium.png", 92, "american", "false");273 createEle("aElements2", "ame2t94", 4, "images/american/neptunium.png", 93, "american", "false");274 createEle("aElements2", "ame2t95", 4, "images/american/plutonium.png", 94, "american", "false");275 createBre("aElements2");276 createEle("aElements2", "ame2t96", 4, "images/american/americium.png", 95, "american", "false");277 createEle("aElements2", "ame2t97", 4, "images/american/curium.png", 96, "american", "false");278 createEle("aElements2", "ame2t98", 4, "images/american/berkelium.png", 97, "american", "false");279 createEle("aElements2", "ame2t99", 4, "images/american/californium.png", 98, "american", "false");280 createEle("aElements2", "ame2t100", 4, "images/american/einsteinium.png", 99, "american", "false");281 createBre("aElements2");282 createEle("aElements2", "ame2t101", 4, "images/american/fermium.png", 100, "american", "false");283 createEle("aElements2", "ame2t102", 4, "images/american/mendelevium.png", 101, "american", "false");284 createEle("aElements2", "ame2t103", 4, "images/american/nobelium.png", 102, "american", "false");285 createEle("aElements2", "ame2t104", 4, "images/american/lawrencium.png", 103, "american", "false");286 createEle("aElements2", "ame2t105", 4, "images/american/rutherfordium.png", 104, "american", "false");287 createBre("aElements2");288 createEle("aElements2", "ame2t106", 4, "images/american/dubnium.png", 105, "american", "false");289 createEle("aElements2", "ame2t107", 4, "images/american/seaborgium.png", 106, "american", "false");290 createEle("aElements2", "ame2t108", 4, "images/american/bohrium.png", 107, "american", "false");291 createEle("aElements2", "ame2t109", 4, "images/american/hassium.png", 108, "american", "false");292 createEle("aElements2", "ame2t110", 4, "images/american/meitnerium.png", 109, "american", "false");293 createBre("aElements2");294 createEle("aElements2", "ame2t111", 4, "images/american/darmstadtium.png", 110, "american", "false");295 createEle("aElements2", "ame2t112", 4, "images/american/roentgenium.png", 111, "american", "false");296 createEle("aElements2", "ame2t113", 4, "images/american/copernicium.png", 112, "american", "false");297 createEle("aElements2", "ame2t114", 4, "images/american/nihonium.png", 113, "american", "false");298 createEle("aElements2", "ame2t115", 4, "images/american/flerovium.png", 114, "american", "false");299 createBre("aElements2");300 createEle("aElements2", "ame2t116", 4, "images/american/moscovium.png", 115, "american", "false");301 createEle("aElements2", "ame2t117", 4, "images/american/livermorium.png", 116, "american", "false");302 createEle("aElements2", "ame2t118", 4, "images/american/tennessine.png", 117, "american", "false");303 createEle("aElements2", "ame2t119", 4, "images/american/oganesson.png", 118, "american", "false");...

Full Screen

Full Screen

script.js

Source:script.js Github

copy

Full Screen

1/*2var rellax = new Rellax('.rellax');3function parallax(x) {4 x = window.matchMedia("(min-width: 992px)");5 if (x.matches) {6 rellax.refresh()7 }8 else{9 rellax.destroy();10 }11}12parallax(x)13window.addEventListener("resize",parallax);14x.addEventListener("resize",parallax);15(/16 */17var x = window.matchMedia("(min-width: 992px)");18var y = window.matchMedia("(max-width: 991px)");19$("#timed, #beep, #pro, #number").addClass("hidden");20(function() {21 var elements1;22 var windowHeight1;23 function init() {24 elements1 = document.querySelectorAll('#timed, #beep, #workout-1, #workout-2, #workout-3, #workout-4');25 windowHeight1 = window.innerHeight;26 }27 function checkPosition() {28 for (let i = 0; i < elements1.length; i++) {29 let element2 = elements1[i];30 let positionFromTop2 = elements1[i].getBoundingClientRect().top;31 if (positionFromTop2 - windowHeight1 <= -150 ) {32 element2.classList.remove('hidden');33 element2.classList.add('animate__animated');34 if(y.matches){35 element2.classList.add('animate__fadeIn');36 $('#workout-1').removeClass('delay1');37 $('#workout-2').removeClass('delay2');38 $('#workout-3').removeClass('delay3');39 $('#workout-4').removeClass('delay4');40 }41 else {42 element2.classList.add('animate__fadeIn');43 }44 }45 }46 }47 window.addEventListener('scroll', checkPosition);48 window.addEventListener('resize', init);49 init();50 checkPosition();51})();52(function() {53 var elements1;54 var windowHeight1;55 function init() {56 elements1 = document.querySelectorAll('#number, #pro');57 windowHeight1 = window.innerHeight;58 }59 function checkPosition() {60 for (let i = 0; i < elements1.length; i++) {61 let element2 = elements1[i];62 let positionFromTop2 = elements1[i].getBoundingClientRect().top;63 if (positionFromTop2 - windowHeight1 <= -150 ) {64 element2.classList.remove('hidden');65 element2.classList.add('animate__animated');66 if(y.matches){67 element2.classList.add('animate__fadeIn');68 }69 else {70 element2.classList.add('animate__fadeIn');71 }72 }73 }74 }75 window.addEventListener('scroll', checkPosition);76 window.addEventListener('resize', init);77 init();78 checkPosition();...

Full Screen

Full Screen

chart.js

Source:chart.js Github

copy

Full Screen

1$(document).ready(function () {2 google.charts.load("current", {3 packages: ["corechart"]4 });5 google.charts.setOnLoadCallback(drawChart);6 function drawChart() {7 var radio1 = document.getElementById("radio1");8 var radio2 = document.getElementById("radio2");9 var radio3 = document.getElementById("radio3");10 var radio1Value = radio1.value | 0;11 var radio2Value = radio2.value | 0;12 var radio3Value = radio3.value | 0;13 var data = google.visualization.arrayToDataTable([14 ['Task', 'Hours per Day'],15 ['راضٍ', radio1Value*1],16 ['مقبول', radio2Value*1],17 ['غير راضٍ', radio3Value*1]18 ]);19 var options = {20 'title': 'مدى الرضى',21 'width': '370',22 'height': '220'23 };24 var chart = new google.visualization.PieChart(document.getElementById('piechart'));25 chart.draw(data, options);26 }27});28/* function renderChart() {29 var elements1 = document.getElementsByName("radio1");30 var avg = [];31 for (var i=0;i<elements1.length;i++) {32 if(elements1[i].checked ){33 avg[i] = (parseFloat(elements1[i].value));34 }35 else {36 avg[i] = 0;37 }38 }39 var dataPoints = [];40 for(var i=0; i<avg.length;i++){41 dataPoints.push({y:avg[i], indexLabel:"{y}"});42 }43 var chart = new CanvasJS.Chart("chartContainer", {44 title: {45 text: "test"46 },47 data: [{48 type: "pie",49 dataPoints: dataPoints50 }]51 });52 chart.render();53} */54/*55function renderChart() {56 var elements1 = document.getElementsByName("exampleForm");57 var avg = [];58 for(var i=0;i<elements1.length;i++){59 if(elements1[i].checked ) {60 avg[i] = (parseFloat(elements1[i].value));61 }62 else if(elements1[i].checked) {63 avg[i] = (parseFloat(elements1[i].value));64 }65 else {66 avg[i] = 0;67 }68 }69 var dataPoints = [];70 for(var i=0; i<avg.length;i++){71 dataPoints.push({y:avg[i], indexLabel:"{y}"});72 }73 var chart = new CanvasJS.Chart("chartContainer", {74 title: {75 text: "Pie Chart from Form Data"76 },77 data: [{78 type: "pie",79 dataPoints: dataPoints80 }]81 }); */82 /* var chart = new google.visualization.PieChart(document.getElementById('piechart'));83 chart.draw(data, options); */84/*85 chart.render();86}...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1import {elements1} from 'ng-mocks';2import {elements2} from 'ng-mocks';3import {elements3} from 'ng-mocks';4import {elements4} from 'ng-mocks';5import {elements5} from 'ng-mocks';6import {elements6} from 'ng-mocks';7import {elements7} from 'ng-mocks';8import {elements8} from 'ng-mocks';9import {elements9} from 'ng-mocks';10import {elements10} from 'ng-mocks';11import {find} from 'ng-mocks';12import {findInstance} from 'ng-mocks';13import {findInstances} from 'ng-mocks';14import {findRenderedDirective} from 'ng-mocks';15import {findRenderedDirectiveInstance} from 'ng-mocks';16import {findRenderedDirectiveInstances} from 'ng-mocks';17import {findRenderedText} from 'ng-mocks';18import {findRenderedComponent} from 'ng-mocks';19import {findRenderedComponentInstance} from 'ng-mocks';20import {findRenderedComponentInstances} from 'ng-mocks';21import {

Full Screen

Using AI Code Generation

copy

Full Screen

1import {elements1} from 'ng-mocks';2import {elements2} from 'ng-mocks';3import {elements3} from 'ng-mocks';4import {elements4} from 'ng-mocks';5import {elements5} from 'ng-mocks';6import {elements6} from 'ng-mocks';7import {elements7} from 'ng-mocks';8import {elements8} from 'ng-mocks';9import {elements9} from 'ng-mocks';10import {elements10} from 'ng-mocks';11import {elements11} from 'ng-mocks';12import {elements12} from 'ng-mocks';13import {elements13} from 'ng-mocks';14import {elements14} from 'ng-mocks';15import {elements15} from 'ng-mocks';16import {elements16} from 'ng-mocks';17import {elements17} from 'ng-mocks';18import {elements18} from 'ng-mocks';19import {elements19} from 'ng-mocks';20import {elements20} from 'ng-mocks';21import {elements21} from 'ng-mocks';22import {elements22} from 'ng-mocks';

Full Screen

Using AI Code Generation

copy

Full Screen

1const elements1 = require('ng-mocks').elements1;2const elements2 = require('ng-mocks').elements2;3const elements3 = require('ng-mocks').elements3;4const elements4 = require('ng-mocks').elements4;5const elements5 = require('ng-mocks').elements5;6const elements6 = require('ng-mocks').elements6;7const elements7 = require('ng-mocks').elements7;8const elements8 = require('ng-mocks').elements8;9const elements9 = require('ng-mocks').elements9;10const elements10 = require('ng-mocks').elements10;11const elements11 = require('ng-mocks').elements11;12const elements12 = require('ng-mocks').elements12;13const elements13 = require('ng-mocks').elements13;14const elements14 = require('ng-mocks').elements14;15const elements15 = require('ng-mocks').elements15;16const elements16 = require('ng-mocks').elements16;17const elements17 = require('ng-mocks').elements17;18const elements18 = require('ng-mocks').elements18;19const elements19 = require('ng-mocks').elements19;20const elements20 = require('ng-mocks').elements20;

Full Screen

Using AI Code Generation

copy

Full Screen

1import { elements1 } from 'ng-mocks';2import { elements } from 'ng-mocks';3import { element } from 'ng-mocks';4import { render } from 'ng-mocks';5import { find } from 'ng-mocks';6import { findInstance } from 'ng-mocks';7import { findInstances } from 'ng-mocks';8import { findInstanceAll } from 'ng-mocks';9import { findInstancesAll } from 'ng-mocks';10import { findDebugElement } from 'ng-mocks';11import { findDebugElements } from 'ng-mocks';12import { findDebugElementAll } from 'ng-mocks';13import { findDebugElementsAll } from 'ng-mocks';14import { findComponent } from 'ng-mocks';15import { findComponents } from 'ng-mocks';16import { findComponentAll } from 'ng-mocks';17import { findComponentsAll } from 'ng-mocks';18import { findDirective } from 'ng-mocks';19import { findDirectives } from 'ng-mocks';20import { findDirectiveAll } from 'ng-mocks';21import { findDirectivesAll } from 'ng-mocks';

Full Screen

Using AI Code Generation

copy

Full Screen

1import { elements1 } from 'ng-mocks';2import { elements } from 'ng-mocks';3import { find } from 'ng-mocks';4import { findInstance } from 'ng-mocks';5import { findInstances } from 'ng-mocks';6import { findMany } from 'ng-mocks';7import { findManyInstances } from 'ng-mocks';8import { findManyRendered } from 'ng-mocks';9import { findRendered } from 'ng-mocks';10import { findRenderedComponent } from 'ng-mocks';11import { findRenderedComponents } from 'ng-mocks';12import { findRenderedDirective } from 'ng-mocks';13import { findRenderedDirectives } from 'ng-mocks';14import { findRenderedInstance } from 'ng-mocks';15import { findRenderedInstances } from 'ng-mocks';16import { findRenderedPipe } from 'ng-mocks';17import { findRenderedPipes } from 'ng-mocks';18import { findRenderedType } from 'ng-mocks';19import { findRenderedTypes } from 'ng-mocks';20import { findType } from 'ng-mocks';

Full Screen

Using AI Code Generation

copy

Full Screen

1import { elements1 } from 'ng-mocks';2import { elements2 } from 'ng-mocks';3import { elements1 as elements } from 'ng-mocks';4import { elements2 as elements } from 'ng-mocks';5import { elements1 as elements1 } from 'ng-mocks';6import { elements2 as elements2 } from 'ng-mocks';7import { elements1 as elements1 } from 'ng-mocks';8import { elements2 as elements2 } from 'ng-mocks';9import { elements1 as elements1 } from 'ng-mocks';10import { elements2 as elements2 } from 'ng-mocks';11import { elements1 as elements1 } from 'ng-mocks';12import { elements2 as elements2 } from 'ng-mocks';13import { elements1 as elements1 } from 'ng-mocks';14import { elements2 as elements2 } from 'ng-mocks';

Full Screen

Using AI Code Generation

copy

Full Screen

1import { elements1 } from 'ng-mocks';2import ngMocks from 'ng-mocks';3import { ngMocks } from 'ng-mocks';4import ngMocks from 'ng-mocks';5import { ngMocks } from 'ng-mocks';6import ngMocks from 'ng-mocks';7import { ngMocks } from 'ng-mocks';8import ngMocks from 'ng-mocks';9import { ngMocks } from 'ng-mocks';10import ngMocks from 'ng-mocks';11import { ngMocks } from 'ng-mocks';12import ngMocks from 'ng-mocks';13import { ngMocks } from 'ng-mocks';14import ngMocks from 'ng-mocks';15import { ngMocks } from 'ng-mocks';16import ngMocks from 'ng-mocks';17import { ngMocks } from 'ng-mocks';18import ngMocks from 'ng-mocks';19import { ngMocks } from 'ng-mocks';20import ngMocks from 'ng-mocks';21import { ngMocks } from 'ng-mocks';22import ngMocks from 'ng-mocks';23import { ngMocks } from 'ng-mocks';24import ngMocks from 'ng-mocks';25import

Full Screen

Using AI Code Generation

copy

Full Screen

1import { elements1 } from 'ng-mocks';2describe('MyComponent', () => {3 it('should render the component', () => {4 const fixture = createComponent(MyComponent);5 expect(elements1('div')).toBeTruthy();6 });7});8import { findInstance } from 'ng-mocks';9describe('MyComponent', () => {10 it('should render the component', () => {11 const fixture = createComponent(MyComponent);12 expect(findInstance(MyComponent)).toBeTruthy();13 });14});15import { findInstances } from 'ng-mocks';16describe('MyComponent', () => {17 it('should render the component', () => {18 const fixture = createComponent(MyComponent);19 expect(findInstances(MyComponent)).toBeTruthy();20 });21});22import { findInput } from 'ng-mocks';23describe('MyComponent', () => {24 it('should render the component', () => {25 const fixture = createComponent(MyComponent);26 expect(findInput(fixture.componentInstance, 'test')).toBeTruthy();27 });28});29import { findInputs } from 'ng-mocks';30describe('MyComponent', () => {31 it('should render the component', () => {32 const fixture = createComponent(MyComponent);33 expect(findInputs(fixture.componentInstance)).toBeTruthy();34 });35});36import { findOutput } from 'ng-mocks';37describe('MyComponent', () => {38 it('should render the component', () => {39 const fixture = createComponent(MyComponent);40 expect(findOutput(fixture.componentInstance, 'test')).toBeTruthy();41 });42});43import { findOutputs } from 'ng-mocks';44describe('MyComponent', () => {45 it('should render the component', () => {46 const fixture = createComponent(MyComponent);47 expect(findOutputs(fixture.componentInstance)).toBeTruthy();48 });49});50import { findReadVar } from 'ng

Full Screen

Using AI Code Generation

copy

Full Screen

1import { elements1 } from 'ng-mocks';2const elements = elements1('my-component');3expect(elements.length).toEqual(1);4expect(elements[0].nativeElement.textContent).toEqual('test');5import { elements2 } from 'ng-mocks';6const elements = elements2('my-component');7expect(elements.length).toEqual(1);8expect(elements[0].nativeElement.textContent).toEqual('test');9import { elements1 } from 'ng-mocks';10const elements = elements1('my-component');11expect(elements.length).toEqual(1);12expect(elements[0].nativeElement.textContent).toEqual('test');13import { elements2 } from 'ng-mocks';14const elements = elements2('my-component');15expect(elements.length).toEqual(1);16expect(elements[0].nativeElement.textContent).toEqual('test');17import { elements1 } from 'ng-mocks';18const elements = elements1('my-component');19expect(elements.length).toEqual(1);20expect(elements[0].nativeElement.textContent).toEqual('test');21import { elements2 } from 'ng-mocks';22const elements = elements2('my-component');23expect(elements.length).toEqual(1);24expect(elements[0].nativeElement.textContent).toEqual('test');25import { elements1 } from 'ng-mocks';26const elements = elements1('my-component');27expect(elements.length).toEqual(1);28expect(elements[0].nativeElement.textContent).toEqual('test');29import { elements2 } from 'ng-mocks';30const elements = elements2('my-component');31expect(elements.length).toEqual(1);32expect(elements[0].nativeElement.textContent).toEqual('test');33import { elements1 } from 'ng-mocks';34const elements = elements1('my-component');35expect(elements.length).toEqual(1);36expect(elements[0].nativeElement.textContent).toEqual('test');

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run ng-mocks 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