fix(guide): simplify directory structure

This commit is contained in:
Mrugesh Mohapatra
2018-10-16 21:26:13 +05:30
parent f989c28c52
commit da0df12ab7
35752 changed files with 0 additions and 317652 deletions

View File

@ -0,0 +1,8 @@
---
title: Give Your JavaScript Slot Machine Some Stylish Images
---
We've already set up the images for you in an array called images. We can use different indexes to grab each of these.
Here's how we would set the first slot to show a different image depending on which number its random number generates:
$($('.slot')[0]).html('<img src = "' + images[slotOne-1] + '">');