Git Product home page Git Product logo

ghost-image-viewer's Introduction

A plugin that makes all images on ghost are zoomable. Click the image and then you can zoom in or zoom out the image in a popup view. 缩放图片的插件

Demon

Online demon: https://www.hoyt-tian.com/reactde-shi-wu-ji-zhi/

Click any Image you can zoom in and zoom out the image. 点击任意图片,就可以缩放它。

Usage

Add the following code in ghost Code Inject -> "Blog Footer" 在Ghost的设置中,找到Code Inject,并添加如下的代码。

<script src="https://rawgit.com/hoyt-tian/ghost-image-viewer/master/dist/ghost-image-viewers.js"></script>

完成以后,就可以通过点击图片,弹出缩放图片的视图。 After that, you're able to click images in the posts and zoom in/out the image.

Github

https://github.com/hoyt-tian/ghost-image-viewer/

More…

这样比较大的图片传到Ghost上,就可以很方便查看了。 It's a rough version to make all images zoomable, I just make this plugin so that I could upload very big images on Ghost and see all content clear.

ghost-image-viewer's People

Contributors

hoyt-tian avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.