Skip to content

Commit

Permalink
NEW:Update version 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matiaslopezd committed Oct 29, 2020
1 parent 08af617 commit 8664c06
Show file tree
Hide file tree
Showing 11 changed files with 5,428 additions and 500 deletions.
Empty file modified .gitattributes
100644 → 100755
Empty file.
91 changes: 91 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# Jetbrain IDE
.idea/
512 changes: 21 additions & 491 deletions LICENSE
100644 → 100755

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ This library is not compatible with IE11. Is designed only for modern browsers.

## Index

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/fdd30041a4064005a36843301d3cb2ee)](https://app.codacy.com/app/matiaslopezd/iFrameX?utm_source=github.com&utm_medium=referral&utm_content=matiaslopezd/iFrameX&utm_campaign=Badge_Grade_Dashboard)

- [Demo](https://github.com/matiaslopezd/iFrameX#demo)
- [How to use](https://github.com/matiaslopezd/iFrameX#how-to-use)
- [Configuration](https://github.com/matiaslopezd/iFrameX#configuration)
Expand Down
Empty file modified _config.yml
100644 → 100755
Empty file.
14 changes: 7 additions & 7 deletions examples/index.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
<!-- Example button -->
<button onclick="createIframe()">Create iframe with iFrameX</button>
<!-- Load iFrameXJS -->
<script src="../src/iframex.js"></script>
<script src="../dist/iframex.min.js"></script>
<!--- Create variable and funtions for initialize iFramex with configuration -->
<script>
let iframe = null;
const table = `<thead> <tr> <th scope="col">#</th> <th scope="col">First</th> <th scope="col">Last</th> <th scope="col">Handle</th> </tr></thead> <tbody> <tr> <th scope="row">1</th> <td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr> <th scope="row">2</th> <td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr> <th scope="row">3</th> <td>Larry</td><td>the Bird</td><td>@twitter</td></tr></tbody>`;
const content = {
attr: {
const content = {
attr: {
width: '100%',
height: '600',
class: 'nice-iframe'
Expand Down Expand Up @@ -75,14 +75,14 @@
],
config: {
debug: true,
action: (msg) => { alert(msg.data) }
}
action: (msg) => { alert(msg.data) }
}
};

function createIframe(){
iframe = new iFrameX(content);
iframe.init();
}
</script>
</body>
</html>
</html>
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const iFrameX = require('./src');

if (typeof module !== 'undefined') {
module.exports = exports = iFrameX;
}

if (typeof define === 'function' && define.amd) {
define('iFrameX', [], function() {
return iFrameX;
});
}
Loading

0 comments on commit 8664c06

Please sign in to comment.