Skip to content

Commit 415ef3f

Browse files
committed
Replaced preview style block from static html to autogenerated by app.js
1 parent cfb3f30 commit 415ef3f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

public/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<div id='content' class='clr'>
1414
<div class='preview_and_configuration'>
1515
<div class='preview'>
16-
<style class='preview_styles'></style>
1716
<div class='arrow_box'>
1817
<h1 class='logo'>css arrow please!</h1>
1918
</div>

public/js/lib/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if (!('CSSArrowPlease' in window)) window.CSSArrowPlease = {};
3333

3434
this.views = [
3535
new G.ArrowConfigurationView({ model: model, container: $('.configuration') }),
36-
new G.ArrowPreviewView({ model: model, container: $('.preview_styles') }),
36+
new G.ArrowPreviewView({ model: model, container: $('<style type="text/css"></style>').appendTo('body') }),
3737
new G.ArrowCSSView({ model: model, container: $('.result_code') }),
3838
];
3939
},

0 commit comments

Comments
 (0)