Skip to content

Instantly share code, notes, and snippets.

@zivester
Created May 14, 2013 19:19
Show Gist options
  • Select an option

  • Save zivester/5578675 to your computer and use it in GitHub Desktop.

Select an option

Save zivester/5578675 to your computer and use it in GitHub Desktop.
[].join()
$('body').append([
"<div class='loading-screen' style='z-index:1005'>",
"<div class='loading-container'>",
"<div class='text'>Loading " + item.name + " (" + item.id + ")",
"<div class='progress progress-striped active' style='width: 100%'>",
<div class='bar' style='width: 100%;'></div>",
"</div>",
"</div>",
"</div>",
"</div>"
].join(''));
@philgran

Copy link
Copy Markdown

The quotes on this html are backwards. Each line should be single quoted, attributes should be double quoted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment