Skip to content

Commit

Permalink
Copy ontology with separate button to clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
linkvt committed Jun 17, 2016
1 parent 8ea9cec commit 86b5d7a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/web/app/Ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class Ui {
on: "click",
target: Ui.urlType
});
Ui.ontologyText.click(() => Ui.ontologyText.select());
new Clipboard("#copy-ontology-to-clipboard-button");
}

static displayFormats(formats) {
Expand Down
8 changes: 7 additions & 1 deletion src/main/web/app/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,18 @@ <h1 class="ui header page">
<div class="ui divider"></div>

<div class="ui doubling stackable grid">
<div class=" sixteen wide column">
<div class="twelve wide column">
<a id="webvowl-button" class="ui tiny fluid teal labeled icon button">
<i class="external icon"></i>
Visualize with WebVOWL
</a>
</div>
<div class="four wide column">
<button id="copy-ontology-to-clipboard-button" class="ui tiny fluid button" data-clipboard-action="copy" data-clipboard-target="#ontology-text">
<i class="copy icon"></i>
Copy ontology
</button>
</div>
</div>

<div id="initial-ontology-info" class="ui icon message">
Expand Down
3 changes: 2 additions & 1 deletion src/main/web/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"babel-polyfill": "https://bitbucket.org/linkvt/babel-polyfill.git#master",
"jquery": "~2.2.3",
"semantic-ui": "git://github.com/linkvt/Semantic-UI.git#master",
"js-cookie": "~2.1.1"
"js-cookie": "~2.1.1",
"clipboard": "^1.5.12"
}
}

0 comments on commit 86b5d7a

Please sign in to comment.