-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd0b044
commit 1c68271
Showing
23 changed files
with
78 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,10 +39,10 @@ is to reference a CDN version: | |
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<script src="https://unpkg.com/[email protected].15/lodash.js"></script> | ||
<script src="https://unpkg.com/three@0.112.1/build/three.min.js"></script> | ||
<script src="https://unpkg.com/miew@0.9.0/dist/Miew.min.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/miew@0.9.0/dist/Miew.min.css" /> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/three@0.153.0/build/three.min.js"></script> | ||
<script src="https://unpkg.com/miew@0.11.0/dist/Miew.min.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/miew@0.11.0/dist/Miew.min.css" /> | ||
</head> | ||
<body> | ||
<div class="miew-container" style="width:640px; height:480px"></div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,10 +30,10 @@ or built with a bundler of your choice. For more details refer to: | |
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<script src="https://unpkg.com/[email protected].15/lodash.js"></script> | ||
<script src="https://unpkg.com/three@0.112.1/build/three.min.js"></script> | ||
<script src="https://unpkg.com/miew@0.9.0/dist/Miew.min.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/miew@0.9.0/dist/Miew.min.css" /> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/three@0.153.0/build/three.min.js"></script> | ||
<script src="https://unpkg.com/miew@0.11.0/dist/Miew.min.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/miew@0.11.0/dist/Miew.min.css" /> | ||
</head> | ||
<body> | ||
<div class="miew-container" style="width:640px; height:480px"></div> | ||
|
@@ -55,10 +55,12 @@ or built with a bundler of your choice. For more details refer to: | |
Install using npm: | ||
|
||
```sh | ||
npm i --save miew | ||
# npm init | ||
# npm i -D webpack webpack-cli style-loader css-loader | ||
npm i miew | ||
``` | ||
|
||
index.js | ||
src/index.js | ||
|
||
```js | ||
import Miew from 'miew'; | ||
|
@@ -72,27 +74,40 @@ window.onload = function () { | |
}; | ||
``` | ||
|
||
index.css | ||
src/index.css | ||
|
||
```css | ||
@import 'miew'; | ||
``` | ||
|
||
index.html | ||
dist/index.html | ||
|
||
```html | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<script src="./dist/main.js"></script> | ||
<script src="main.js"></script> | ||
</head> | ||
<body> | ||
<div class="miew-container" style="width:640px; height:480px"></div> | ||
</body> | ||
</html> | ||
``` | ||
|
||
webpack.config.js | ||
|
||
```js | ||
module.exports = { | ||
module: { | ||
rules: [{ | ||
test: /\.css$/, | ||
use: ['style-loader', 'css-loader'], | ||
}], | ||
}, | ||
}; | ||
``` | ||
|
||
## Contribution | ||
|
||
Please read [CONTRIBUTING.md](../../CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,11 +31,11 @@ _index.html_ | |
<meta charset="UTF-8"> | ||
<title>Miew via Global</title> | ||
|
||
<link rel="stylesheet" href="https://unpkg.com/miew@0.9.0/dist/Miew.min.css"> | ||
<link rel="stylesheet" href="https://unpkg.com/miew@0.11.0/dist/Miew.min.css"> | ||
<script src="https://unpkg.com/@babel/polyfill@7/dist/polyfill.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].15/lodash.js"></script> | ||
<script src="https://unpkg.com/three@0.112.1/build/three.min.js"></script> | ||
<script src="https://unpkg.com/miew@0.9.0/dist/Miew.min.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/three@0.153.0/build/three.min.js"></script> | ||
<script src="https://unpkg.com/miew@0.11.0/dist/Miew.min.js"></script> | ||
</head> | ||
<body> | ||
<h1>Use Miew via browser globals</h1> | ||
|
@@ -64,7 +64,7 @@ _index.html_ | |
<meta charset="UTF-8"> | ||
<title>Miew via Require.js</title> | ||
|
||
<link rel="stylesheet" href="https://unpkg.com/miew@0.9.0/dist/Miew.min.css"> | ||
<link rel="stylesheet" href="https://unpkg.com/miew@0.11.0/dist/Miew.min.css"> | ||
<script src="https://unpkg.com/@babel/polyfill@7/dist/polyfill.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script> | ||
</head> | ||
|
@@ -75,11 +75,11 @@ _index.html_ | |
<script> | ||
require.config({ | ||
paths: { | ||
'lodash': 'https://unpkg.com/lodash@^4.17.15/lodash', | ||
'three': 'https://unpkg.com/three@0.112.0/build/three.min', | ||
'lodash': 'https://unpkg.com/lodash@^4.17.21/lodash', | ||
'three': 'https://unpkg.com/three@0.153.0/build/three.min', | ||
} | ||
}); | ||
require(['https://unpkg.com/miew@0.9.0/dist/Miew.min.js'], function(Miew) { | ||
require(['https://unpkg.com/miew@0.11.0/dist/Miew.min.js'], function(Miew) { | ||
var viewer = new Miew({ load: '1CRN' }); | ||
if (viewer.init()) { | ||
viewer.run(); | ||
|
@@ -120,7 +120,7 @@ _index.html_ | |
<meta charset="UTF-8"> | ||
<title>Miew via Browserify</title> | ||
|
||
<link rel="stylesheet" href="https://unpkg.com/miew@0.9.0/dist/Miew.min.css"> | ||
<link rel="stylesheet" href="https://unpkg.com/miew@0.11.0/dist/Miew.min.css"> | ||
<script src="https://unpkg.com/@babel/polyfill@7/dist/polyfill.min.js"></script> | ||
<script src="bundle.js"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<title>Miew API</title> | ||
|
||
<link rel="stylesheet" href="../dist/Miew.min.css"> | ||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.min.js"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<title>Miew via Global</title> | ||
|
||
<link rel="stylesheet" href="../dist/Miew.min.css"> | ||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.min.js"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<title>Miew events</title> | ||
|
||
<link rel="stylesheet" href="../dist/Miew.min.css"> | ||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.min.js"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
} | ||
</style> | ||
|
||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.min.js"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,7 +91,7 @@ <h2>Adverse effects</h2> | |
</div> | ||
|
||
|
||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.min.js"></script> | ||
<script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<title>Miew labels</title> | ||
|
||
<link rel="stylesheet" href="../dist/Miew.min.css"> | ||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.min.js"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<title>Load serotonin from string</title> | ||
|
||
<link rel="stylesheet" href="../dist/Miew.min.css"> | ||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.js"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<title>Miew via Global</title> | ||
|
||
<link rel="stylesheet" href="../dist/Miew.min.css"> | ||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.min.js"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ <h1>Use Miew via Require.js</h1> | |
<script> | ||
require.config({ | ||
paths: { | ||
'lodash': 'https://unpkg.com/lodash@^4.17.15/lodash', | ||
'lodash': 'https://unpkg.com/lodash@^4.17.21/lodash', | ||
'three': 'https://unpkg.com/[email protected]/build/three.min', | ||
} | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<title>Multiple Miew Instances</title> | ||
|
||
<link rel="stylesheet" href="../dist/Miew.min.css"> | ||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.min.js"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<title>Miew options</title> | ||
|
||
<link rel="stylesheet" href="../dist/Miew.min.css"> | ||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.min.js"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<title>.options.fromAttr() - Miew API</title> | ||
|
||
<link rel="stylesheet" href="../dist/Miew.min.css"> | ||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.min.js"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<title>.options.fromURL() - Miew API</title> | ||
|
||
<link rel="stylesheet" href="../dist/Miew.min.css"> | ||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.min.js"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
} | ||
</style> | ||
|
||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.min.js"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<title>Select residues from sequence</title> | ||
|
||
<link rel="stylesheet" href="../dist/Miew.min.css"> | ||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.min.js"></script> | ||
<style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
|
||
<script src="https://unpkg.com/jquery@3/dist/jquery.min.js"></script> | ||
<script src="https://unpkg.com/jquery.terminal@2/js/jquery.terminal.min.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.min.js"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ <h1>Use transparent background</h1> | |
<div class="miew-container" style="width:640px; height:480px"></div> | ||
</div> | ||
|
||
<script src="https://unpkg.com/lodash@^4.17.15/lodash.js"></script> | ||
<script src="https://unpkg.com/lodash@^4.17.21/lodash.js"></script> | ||
<script src="https://unpkg.com/[email protected]/build/three.min.js"></script> | ||
<script src="../dist/Miew.min.js"></script> | ||
<script> | ||
|
Oops, something went wrong.