Skip to content

Commit

Permalink
bug-fixed:codepen embed height fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ritz078 committed Apr 29, 2015
1 parent 0972d3f commit a21bacd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
10 changes: 4 additions & 6 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,21 @@
</head>
<body>

<div id="block">Pulchritudines nocere, :heart: tanquam talis hibrida.A falsis, brodium :+1: salvus gabalium.Nunquam
<div id="block">
Pulchritudines nocere, :heart: tanquam talis hibrida.A falsis, brodium :+1: salvus gabalium.Nunquam
promissio
http://iitr.ac.in caesium.Cum rumor peregrinationes, omnes ususes anhelare fidelis, pius detriuses.
```javascript
```
grade = (student, period=(if b? then 7 else 6)) ->
if student.excellentWork
"A+"
else if student.okayStuff
if student.triedHard then "B" else "B-"
else
"C"
class Animal extends Being
constructor: (@name) ->\nmove: (meters) ->
alert @name + " moved #{meters}m."
``` Flavum, ferox
torquiss vix aperto de bi-color, audax nixus.Pol, alter devatio!Crescere aliquando ducunt ad noster lixa.
:smile: :P https://twitter.com/ritz078/status/591208797579804673
:smile: :P https://www.youtube.com/watch?v=bQRLVxZHKPs
</div>
<h1>embed-js</h1>

Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@
if (matches) {
var i = 0;
while (i < matches.length) {
str = str + '<div class="ejs-embed ejs-codepen"><iframe scrolling="no" height="' + opts.codeEmbedHeight + '" src="' + matches[i].replace(/\/pen\//, '/embed/') + '/?height=' + opts.codepenHeight + '" frameborder="no" allowtransparency="true" allowfullscreen="true"></iframe></div>';
str = str + '<div class="ejs-embed ejs-codepen"><iframe scrolling="no" height="' + opts.codeEmbedHeight + '" src="' + matches[i].replace(/\/pen\//, '/embed/') + '/?height=' + opts.codeEmbedHeight + '" frameborder="no" allowtransparency="true" allowfullscreen="true"></iframe></div>';
i++;
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.embed.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/jquery.embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@
if (matches) {
var i = 0;
while (i < matches.length) {
str = str + '<div class="ejs-embed ejs-codepen"><iframe scrolling="no" height="' + opts.codeEmbedHeight + '" src="' + matches[i].replace(/\/pen\//, '/embed/') + '/?height=' + opts.codepenHeight + '" frameborder="no" allowtransparency="true" allowfullscreen="true"></iframe></div>';
str = str + '<div class="ejs-embed ejs-codepen"><iframe scrolling="no" height="' + opts.codeEmbedHeight + '" src="' + matches[i].replace(/\/pen\//, '/embed/') + '/?height=' + opts.codeEmbedHeight + '" frameborder="no" allowtransparency="true" allowfullscreen="true"></iframe></div>';
i++;
}
}
Expand Down

0 comments on commit a21bacd

Please sign in to comment.