Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6f7b4a0

Browse files
updated js code that now works in firefox.
1 parent 371384f commit 6f7b4a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ <h3>html code</h3>
9696
<div class="block-heading">
9797
<h3>css code</h3>
9898
</div>
99-
<a href="#" class="btn-absolute btn-outline css-copy">Copy</a>
99+
<a href="javascript:;" class="btn-absolute btn-outline css-copy">Copy</a>
100100
<div class="code-section css-code">
101101
<pre id="css-code">
102102
.btn{
@@ -123,7 +123,7 @@ <h3>css code</h3>
123123
<div class="block-heading">
124124
<h3>JavaScript code</h3>
125125
</div>
126-
<a href="#" class="btn-absolute btn-outline js-copy">Copy</a>
126+
<a href="javascript:;" class="btn-absolute btn-outline js-copy">Copy</a>
127127
<div class="code-section js-code">
128128
<pre id="js-code">
129129
$(function(){

‎js/uploader.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function checkProfileSize(arg){
2727
var fileInput = $('form').find("input#my-profile-file-selector[type=file]")[0],
2828
file = fileInput.files && fileInput.files[0];
2929
var sizeKB = file.size / 1024;
30-
var tmppath = URL.createObjectURL(event.target.files[0]);
30+
var tmppath = URL.createObjectURL(fileInput.files[0]);
3131
var maxSize = arg.size || sizeKB;
3232
var imgHeight, imgWidth;
3333
console.log("maxSize "+maxSize);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /