最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - how to include reference in JSFIDDLE - Stack Overflow

programmeradmin3浏览0评论

Bit of a beginner at using JSFiddle...trying to recreate an issue in my code. Unsure how to include the correct reference though. For My code I am using:

    <link href="/jquery-ui-1.10.3.custom/css/start/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" type="text/css" />
<script src="/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>

So my Q being how do I include these files in JSFiddle. Cant seem to find them from the drop down?

Bit of a beginner at using JSFiddle...trying to recreate an issue in my code. Unsure how to include the correct reference though. For My code I am using:

    <link href="/jquery-ui-1.10.3.custom/css/start/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" type="text/css" />
<script src="/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>

So my Q being how do I include these files in JSFiddle. Cant seem to find them from the drop down?

Share Improve this question edited Nov 27, 2024 at 13:52 Danny Beckett 20.9k26 gold badges113 silver badges142 bronze badges asked Jul 8, 2015 at 8:29 JohnJohn 3,94522 gold badges84 silver badges174 bronze badges 3
  • 1 type cdn url at External Resources. And if just jquery-ui, choose jquery-pact(edge) at Frameworks & Extensions then it'll let you choose. – fuyushimoya Commented Jul 8, 2015 at 8:30
  • @ArunPJohny The issue here is that the files the OP is trying to link are custom builds of the jQueryUI library, so they will not be publicly hosted (unless he has already published his site). Also, the links in your fiddles external references use the relative paths provided above, so will never work. – Rory McCrossan Commented Jul 8, 2015 at 8:36
  • thanks for the help guys....still cant get it working...if you seem my attempt jsfiddle/j73vpk1m/2 does anyone know what I am doing wrong. popup should only display when 'create layer' button is clicked. the popUp should contain 3 radio button clicks with images attached to them and a 'next' button – John Commented Jul 8, 2015 at 8:43
Add a ment  | 

1 Answer 1

Reset to default 8

Use the external resource part. JSFiddle automatically identifies it as JS or CSS based on the extension:

Note: This will only work if the files are publicly available online. If they're only on your local machine, this feature won't work for you.

If you wanna upload your local file, you can use Gists and put your code in it. Then you can use RawGit to get the working URL and add it there, as usual.

发布评论

评论列表(0)

  1. 暂无评论