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

trouble copying code #654

Open
dirkca opened this issue Jun 22, 2016 · 3 comments
Open

trouble copying code #654

dirkca opened this issue Jun 22, 2016 · 3 comments

Comments

@dirkca
Copy link

dirkca commented Jun 22, 2016

Hello, I am trying to make it easy for our teachers to copy some code into their clipboard so they can use it in their courses, similar to how they would use embed code from youtube video for example. I don't seem to be able to copy the following. What could I do?
Thank you.

  <meta charset="utf-8">
  <title>jQuery UI Tabs - Collapse content</title>
  <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
  <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css">
  <script>
  $(function() {
    $( "#tabs" ).tabs({
      collapsible: true
    });
  });
  </script>
</head>
<body>

<div id="tabs">
  <ul>
    <li><a href="#tabs-1">Tab 1</a></li>
    <li><a href="#tabs-2">Tab 2</a></li>
    <li><a href="#tabs-3">Tab 3</a></li>
  </ul>
  <div id="tabs-1">
    <p>some text</p>
  </div>
  <div id="tabs-2">
    <p>some text</p>
  </div>
  <div id="tabs-3">
    <p>some text</p>
  </div>
</div>
@JamesMGreene
Copy link
Member

JamesMGreene commented Jul 8, 2016

I am unclear as to both (a) what you are trying to achieve in terms of the HTML you shared, and (b) if you have attempted to integrate ZeroClipboard yet at all as its script tag does not appear in your HTML.

Please supply more information.

@dirkca
Copy link
Author

dirkca commented Jul 20, 2016

I want teachers to be able to copy the above code into their clipboard so that they can use it elsewhere in the system. They then can build menus inside their pages for example. I show them a sample page as seen in the attached picture. When they click, 'Copy to Clipboard' I would like them to copy the above code only.

I added the following to the page also:

`

Copy to Clipboard

<script src="https://moodle.rockyview.ab.ca/EXTERNAL/zeroclipboard/zeroclipboard/dist/ZeroClipboard.js" type="text/javascript"></script> <script src="https://moodle.rockyview.ab.ca/EXTERNAL/zeroclipboard/zeroclipboard/dist/main.js" type="text/javascript"></script>`

Where it says "Sorry-This feature is presently not working" I would place the code I shared in the first comment.

@dirkca
Copy link
Author

dirkca commented Jul 20, 2016

tabs-menu

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants