Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Update demo pages to Vue.js 2.0 #7

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
6 changes: 0 additions & 6 deletions css/Jcrop.min.css

This file was deleted.

29 changes: 29 additions & 0 deletions css/jquery.Jcrop.min.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* jquery.Jcrop.min.css v0.9.12 (build:20130126) */
.jcrop-holder{direction:ltr;text-align:left;}
.jcrop-vline,.jcrop-hline{background:#FFF url(Jcrop.gif);font-size:0;position:absolute;}
.jcrop-vline{height:100%;width:1px!important;}
.jcrop-vline.right{right:0;}
.jcrop-hline{height:1px!important;width:100%;}
.jcrop-hline.bottom{bottom:0;}
.jcrop-tracker{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;height:100%;width:100%;}
.jcrop-handle{background-color:#333;border:1px #EEE solid;font-size:1px;height:7px;width:7px;}
.jcrop-handle.ord-n{left:50%;margin-left:-4px;margin-top:-4px;top:0;}
.jcrop-handle.ord-s{bottom:0;left:50%;margin-bottom:-4px;margin-left:-4px;}
.jcrop-handle.ord-e{margin-right:-4px;margin-top:-4px;right:0;top:50%;}
.jcrop-handle.ord-w{left:0;margin-left:-4px;margin-top:-4px;top:50%;}
.jcrop-handle.ord-nw{left:0;margin-left:-4px;margin-top:-4px;top:0;}
.jcrop-handle.ord-ne{margin-right:-4px;margin-top:-4px;right:0;top:0;}
.jcrop-handle.ord-se{bottom:0;margin-bottom:-4px;margin-right:-4px;right:0;}
.jcrop-handle.ord-sw{bottom:0;left:0;margin-bottom:-4px;margin-left:-4px;}
.jcrop-dragbar.ord-n,.jcrop-dragbar.ord-s{height:7px;width:100%;}
.jcrop-dragbar.ord-e,.jcrop-dragbar.ord-w{height:100%;width:7px;}
.jcrop-dragbar.ord-n{margin-top:-4px;}
.jcrop-dragbar.ord-s{bottom:0;margin-bottom:-4px;}
.jcrop-dragbar.ord-e{margin-right:-4px;right:0;}
.jcrop-dragbar.ord-w{margin-left:-4px;}
.jcrop-light .jcrop-vline,.jcrop-light .jcrop-hline{background:#FFF;filter:alpha(opacity=70)!important;opacity:.70!important;}
.jcrop-light .jcrop-handle{-moz-border-radius:3px;-webkit-border-radius:3px;background-color:#000;border-color:#FFF;border-radius:3px;}
.jcrop-dark .jcrop-vline,.jcrop-dark .jcrop-hline{background:#000;filter:alpha(opacity=70)!important;opacity:.7!important;}
.jcrop-dark .jcrop-handle{-moz-border-radius:3px;-webkit-border-radius:3px;background-color:#FFF;border-color:#000;border-radius:3px;}
.solid-line .jcrop-vline,.solid-line .jcrop-hline{background:#FFF;}
.jcrop-holder img,img.jcrop-preview{max-width:none;}
24 changes: 14 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,43 @@
<head>
<title>Vue Crop</title>
<meta charset="utf-8">
<meta name="description" content="Crop directive for Vue.js.">
<meta name="description" content="Crop directive for Vue.js 2.0">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:400|Dosis:300">
<link rel="stylesheet" href="css/Jcrop.min.css">
<link rel="stylesheet" href="css/jquery.Jcrop.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>

<div id="container">
<h1>Vue Crop</h1>
<h4>Crop directive for Vue.js</h4>
<h4>You have to run this demo with a browser which supports ES6</h4>

<a href="https://github.com/pespantelis/vue-crop" class="button">Source on GitHub</a>
<a href="https://github.com/pespantelis/vue-crop" class="button">Source for Vue.js 1.0</a>
<a href="https://github.com/Dectinc/vue2-crop" class="button">Source on GitHub</a>

<div id="social">
<a href="https://twitter.com/share" class="twitter-share-button" data-text="VueCrop - A @vuejs directive for image cropping" data-via="pespantelis">Tweet</a>
<iframe src="https://ghbtns.com/github-btn.html?user=pespantelis&repo=vue-crop&type=star&count=true" frameborder="0" scrolling="0" width="78px" height="20px"></iframe>
<a href="https://twitter.com/share" class="twitter-share-button"
data-text="Vue2Crop - A @vuejs directive for image cropping" data-via="dectinc">Tweet</a>
<iframe src="https://ghbtns.com/github-btn.html?user=Dectinc&repo=vue2-crop&type=star&count=true"
frameborder="0" scrolling="0" width="78px" height="20px"></iframe>
</div>

<h2 v-text="coords|json"></h2>

<img src="pic.jpg" width="600" height="400"
v-crop:create="test" v-crop:start="test" v-crop:move="test" v-crop:end="test"/>
v-crop:select="test"/>

<a href="https://github.com/pespantelis/vue-crop/tree/gh-pages" style="float:right">source</a>
<a href="https://github.com/Dectinc/vue2-crop/tree/gh-pages-vue2" style="float:right">source</a>
</div>

<script src="js/vue.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/Jcrop.min.js"></script>
<script src="js/vue-crop.js"></script>
<script src="js/jquery.color.js"></script>
<script src="js/jquery.Jcrop.min.js"></script>
<script src="js/vue2-crop.js"></script>
<script src="js/script.js"></script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

</body>
</html>
5 changes: 0 additions & 5 deletions js/Jcrop.min.js

This file was deleted.

Loading