code Javascript function (fill <ul> with shuffled array)

已关闭

描述

I need a javascript (+ jQuery + jQueryUI) function for an online exercise, which does the following things:

1. Take an array as an argument (e.g. a dialog: "Hey Bill", "Hey Joe.", "Can you pick me up at the airport tonight?", "What time?", "I should arrive at 6.30.", "Can´t make it until 7", “Ok, I´ll wait for you until 7. See you later”, “See you.”)

2. Save the first element of array in a variable. Shuffle the rest of the array.

3. Create two divs next to each other. The first one remains empty except for the first element (see #3, e.g. <li>Hey Bill</li>, the second one holds a <ul> with the <li>-elements from the SHUFFLED array, e.g.

<li> Can´t make it until 7</li>

<li> Can you pick me up at the airport tonight?</li>

<li> Ok, I´ll wait for you until 7. See you later </li>

<li> Hey Joe.</li>

<li> What time?"</li>

<li> I should arrive at 6.30.", </li>

4. The user should be able to drag and drop the sentences from the right <div> into the left <div> (as to be seen here: [url removed, login to view]). in order to reconstruct the dialog. Assign different CSS-classes to the even and odd <li> elements in the left <div>.

5. There is a boolean, let´s call it orderCorrect, which is FALSE by default and turns TRUE in the moment the dialog has been put into the correct order in the left <div>.

6. You must not use [url removed, login to view](), as it wouldn´t work within Twine ([url removed, login to view])

技能: Javascript, jQuery / Prototype

查看更多: convert javascript function java code, javascript add code existing function, javascript code remove items check box lists, software write mq4, software write chip epson, useful software write book, software write web specs, converting javascript function code, free software write user guide, software write edid, free software write company profile, software write websites idea, software write book images, software write books, software write protection, javascript function load xml data array, free software write book, software write book, joomla main_menu javascript function, Javascript function, javascript redirect code, javascript affiliate code rotate, software write protect software, javascript voting code, javascript feedback code verification

Project ID: #11509516

已悬赏给:

jassn403

Hello, I can do this project for you. However I have a question: do you need the layout to have a specific design or any generic design will do? Hoping to hear back, With Best Regards, Jewel Mahanta

€16 EUR 在1天内
(1条评论)
0.0

10 freelancers are bidding on average €31 for this job

shihan033010

Hi i have understood your requirements. I can complete it within 1 day. please accept the bid and create the milestone. I am ready to start the project.

€30 EUR in 1 day
(84条评论)
5.5
€34 EUR 在0天内
(47条评论)
6.2
€20 EUR in 1 day
(9条评论)
2.7
satyaninfotech

I have reviewed your requirement, but i have some doubt, can you please elaborate the following section 1) 3rd point is not exactly clear, can you come online and explain little bit more. 2) i see this link and know 更多

€30 EUR in 1 day
(2条评论)
2.9
€36 EUR 在2天内
(2条评论)
1.9
lakhankaushal

Hello, My name is Lakhan, I have a vast working experience in WordPress website development and have developed number of WordPress Themes in my career. I have been using foundation and bootstrap for Making Responsive 更多

€23 EUR in 1 day
(2条评论)
0.9
developersworld7

Hello, I have experience in developing Web apps using HTML JavaScript/JQuery, CSS and AJAX technologies.

€72 EUR in 1 day
(1条评论)
1.1
€23 EUR in 1 day
(0条评论)
0.0
€26 EUR in 1 day
(0条评论)
0.0
robcasino

Hello, how are you doing today? Click on that__CHAT__button below so that I can ask a few questions concerning your project. I have read all the provided instructions and I am the right person to work on this task. I p 更多

€100 EUR 在3天内
(7条评论)
0.0
creative4soft

Hello Mate We are a young team that is focused on growth through doing things differently. Since inception we have focused on delivering projects which are benchmarked by its quality. We say what we can deliver and d 更多

€29 EUR in 1 day
(0条评论)
0.0