forked from patrickheck/socialshareprivacy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
749 lines (735 loc) · 32.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
<!DOCTYPE HTML>
<html lang="de-DE">
<head>
<title>Documentation – heise „socialSharePrivacy“–Plug-In</title>
<meta charset="UTF-8" />
<meta name="author" content="Hilko Holweg, Sebastian Hilbig, Nicolas Heiringhoff, Juergen Schmidt - Heise Zeitschriften Verlag GbmH & Co. KG, translation James Michael DuPont - Flossk.org" />
<meta name="description" content="Documentation and Usage of the heise SocialSharePrivacy-Plug-Ins" />
<style type="text/css">
h1, h2, h3 {
font: normal 24px/30px Georgia, Times, "Times New Roman", serif;
color: #666;
}
h2 {
font-size: 22px;
line-height: 28px;
}
h3 {
font-size: 20px;
line-height: 26px;
}
a {
color: #039;
}
pre {
background-color: #eee;
border: 1px solid #bbb;
padding: 10px;
margin: 20px 0 0;
}
pre code {
margin: 0;
padding: 0;
}
pre + p {
margin-top: 5px;
}
ol li, p, td, th {
font: normal 14px/20px "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, sans-serif;
clear: both;
}
nav {
display: block;
margin-bottom: 50px;
border-bottom: 1px solid #333;
}
nav ol li,
nav ol li a {
font: bold 16px/24px "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, sans-serif;
color: #039;
-moz-transition: all .5s ease-in;
-webkit-transition: all .5s ease-in;
transition: all .5s ease-in;
}
nav ol li a:hover {
text-decoration: none;
color: #333;
}
ol#structure li ol {
list-style-type: none;
padding: 0;
}
ol#structure li ol#fb_app_id_step_by_step {
list-style-type: decimal;
padding-left: 20px;
}
ol#structure li ol#fb_app_id_step_by_step li {
margin-bottom: 16px;
}
ol#structure li ol li {
margin-bottom: 30px;
}
ol#structure li ol li table {
border: 1px solid #333;
width: 100%;
display: table;
margin: 20px 0;
}
ol#structure li ol.changelog li {
margin: 5px 0;
}
ol#structure li ol.changelog li pre {
margin: 5px 0 20px;
}
table caption {
text-align: left;
font-size: 18px;
font-weight: bold;
text-indent: 5px;
}
table th {
text-align: left;
font-style: italic;
background-color: #333;
color: #fff;
}
table th,
table td {
padding: 2px 4px;
vertical-align: top;
}
table tr:hover td {
background-color: #eee;
}
</style>
</head>
<body>
<h1>jQuery Plug-In socialshareprivacy – Documentation</h1>
<h3>Download of the jQuery-Plug-Ins:</h3>
<p>
<a href="http://www.heise.de/extras/socialshareprivacy/jquery.socialshareprivacy.zip">jquery.socialshareprivacy.zip</a><br />
<a href="http://www.heise.de/extras/socialshareprivacy/jquery.socialshareprivacy.tar.gz">jquery.socialshareprivacy.tar.gz</a>
<a href="https://github.com/h4ck3rm1k3/socialshareprivacy">git clone git://github.com/h4ck3rm1k3/socialshareprivacy.git</a>
</p>
<nav>
<h2>Navigation</h2>
<ol>
<li><a href="#changelog">Change-Log</a></li>
<li><a href="#files">Files</a></li>
<li><a href="#pre">Prerequisites and Limitations</a></li>
<li><a href="#dimensions">Dimensions</a></li>
<li>Simple Usage
<ol>
<li><a href="#merge">Source Code</a></li>
<li><a href="#explanation">Explanation of the Code</a></li>
</ol>
</li>
<li><a href="#options">Options</a>
<ol>
<li><a href="#options_general">General</a></li>
<li><a href="#options_facebook">Facebook</a></li>
<li><a href="#options_twitter">Twitter</a></li>
<li><a href="#options_gplus">Google+</a></li>
</ol>
</li>
<li><a href="#examples">Example-Usage</a>
<ol>
<li><a href="#only_fb">Only use Facebook</a></li>
<li><a href="#no_perma">don't offer an option for permanent activation</a></li>
<li><a href="#only_gplus_css_path">Only offer Google+ and use custom path for the css file.</a></li>
</ol>
</li>
<li><a href="#url">URL</a></li>
<li><a href="#perma_option">Permanent Options</a></li>
<li><a href="#licence">License</a></li>
<li><a href="#logo">Logo</a></li>
</ol>
</nav>
<ol id="structure">
<li>
<h2 id="changelog">Change-Log</h2>
<ol class="changelog">
<li>
<h3 id="v1-4">Version 1.4</h3>
<ul>
<li>
Icons: because Google+ has delivered a new icon, we have a new icon for the inactive Google+<br />
old: <img src="/extras/socialshareprivacy/socialshareprivacy/images/dummy_gplus_alt.png" alt="old Google+ Icon" /><br />
new: <img src="/extras/socialshareprivacy/socialshareprivacy/images/dummy_gplus.png" alt="new Google+ Icon" /><br />
</li>
</ul>
</li>
<li>
<h3 id="v1-3">Version 1.3</h3>
<ul>
<li>
First Version that can be used multiple times on single web page. The different instances can use different URIs via the optional <code>uri</code> function which delivers a DOM-Node where we can get the URI from. An example for the usage is found in the Example section <a href="#examples">example-integration</a> of the documentation.
</li>
<li>
Correction for IE < 9: The Stylesheet given via the <code>css_path</code> was not used in jQuery-versions != 1.4.2.
</li>
</ul>
</li>
<li>
<h3 id="v1-2">Version 1.2</h3>
<ul>
<li>
JS: removed the Facebook App-ID, because it is no longer needed for the recommend button.
</li>
</ul>
</li>
<li>
<h3 id="v1-1">Version 1.1</h3>
<ul>
<li>
CSS: we have added styles to some elements to reduce the code style, mainly <code>margin</code>-, <code>padding</code>-, <code>width</code>- and <code>height</code>- attributes.
</li>
<li>
The docs were extended with examples and change logs.
</li>
<li>
The plug-in was changed slightly and some abbreviations were made.
</li>
<li>
JS bug correction: There was an bug when the page used the <code>canonical</code> attribute that was ignored in the script.
</li>
<li>
JS bug correction: For Google+ there was a option that was ignored by the script.
</li>
<li>
JS-Bug fix: The Perma-option for Google+ was only used when the permanent option of Twitter was also activated.
</li>
<li>
Twitter: If activated the iFrame was too large and covered the underlying links. <code><iframe ...style="width:130px; height:25px;"></iframe></code> added.
</li>
<li>
General: If the option is css_path was empty, no <link>-Tag with an empty href is added.
</li>
<li>
General: The URI used by the buttons can now be controlled by <code>uri</code> option. It can be both a constant value, as well as a function. The default is the <code>getURI</code> function .
</li>
<li><strong>New Features:</strong>
<ul>
<li>Facebook:
Facebook: The labels on the button "Share" and "Like" can be controlled using the new "action". Values are "<code>recommend</code>" (default) and "<code>like</code>".</li>
<li>Twitter: parameter "<code>language</code>" (default "<code>en</code>") are available also for Twitter.</li>
</ul>
</li>
</ul>
</li>
<li>
<h3 id="v1-0">Version 1.0</h3>
<ul>
<li>First public release</li>
</ul>
</li>
</ol>
</li>
<li>
<h2 id="files">Files</h2>
<p>Our plug-in includes the following files:</p>
<ul>
<li>index.html (the document you are reading)</li>
<li>dimensions.gif (infographic for this document)</li>
<li>2-klick-logo_min.jpg (small Logo)</li>
<li>jquery.socialshareprivacy.js(the javascript source code)</li>
<li>jquery.socialshareprivacy.min.js (the minified javascript source code)</li>
<li>socialshareprivacy/socialshareprivacy.css (the css stylesheet)</li>
<li>socialshareprivacy/images/dummy_facebook.png</li>
<li>socialshareprivacy/images/dummy_facebook_en.png</li>
<li>socialshareprivacy/images/dummy_gplus.png</li>
<li>socialshareprivacy/images/dummy_twitter.png</li>
<li>socialshareprivacy/images/settings.png</li>
<li>socialshareprivacy/images/socialshareprivacy_info.png</li>
<li>socialshareprivacy/images/socialshareprivacy_on_off.png</li>
<li>socialshareprivacy/images/2-klick-logo.jpg</li>
</ul>
</li>
<li>
<h2 id="pre">Requirements and Limitations</h2>
<p>
Technical requirements are jQuery and Javascript enabled in your browser. We have tested with jQuery 1.4. <br />
</p>
<p>
If you have suggestions for improvements, please contact us by mail to <a href="mailto:[email protected]?subject=Vorschlag%20zum%20Plug-In">[email protected]</a>.
</p>
<p>
The permanent activation of the service only works in Internet Explorer version 8, as previous versions do not support JSON. Therefore in IE <= 7 is missing this feature. The rest of the plug-ins is not affected.
</p>
<p>
<del datetime="2011-10-04" cite="http://www.heise.de/extras/socialshareprivacy/#v1-2">For Facebook an App-ID was needed, but no longer. see <a href="#fb_app-id">Facebook notes</a>.</del>
</p>
</li>
<li>
<h2 id="dimensions">Dimensions</h2>
<img src="dimensions.gif" width="600" height="284" alt="Dimensions of the Plug-Ins" />
<p>
The plug-in requires a total of about 600 pixels wide (if all services are running) and about 290 pixels in height, this of course also depends on the length of the specified mouseover text.
</p>
<li>
<ol>
<li>
<h2 id="merge">Integration</h2>
<pre>
<code><head>
…
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.socialshareprivacy.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){
if($('#socialshareprivacy').length > 0){
$('#socialshareprivacy').socialSharePrivacy();
}
});
</script>
…
</head>
<body>
…
<div id="socialshareprivacy"></div>
…
</body></code>
</pre>
</li>
<li>
<h3 id="explanation">Explanation of the code</h3>
<pre>
<code><script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.socialshareprivacy.js"></script></code>
</pre>
<p>
The first line includes the Javascript framework „JQuery“ (<a href="http://jquery.com/">http://jquery.com/</a>), the second line of our plug-in. jQuery is <strong>not</strong> in our package, you have to download it from the website.
</p>
<pre>
<code><script type="text/javascript">
jQuery(document).ready(function($){
if($('#socialshareprivacy').length > 0){
$('#socialshareprivacy').socialSharePrivacy();
}
});
</script></code>
</pre>
<p>
In this <code><script></code> the plug-in function is attached to an arbitrary, empty HTML element in the page, in this case, the element with the <code>id</code> <em>socialshareprivacy</em>.
In order make sure the item is actually present, we have added the control function <code>if</code> enclosing the attachment to check the conditions.<br />
</p>
<pre>
<code><body>
…
<div id="socialshareprivacy"></div>
…
</body></code>
</pre>
<p>
Somewhere in <code><body></code> section of the website you placed the empty HTML element with the desired <code>id</code>, and used for the same <code>id</code> that you specified in the previous <code><script></code>.
</p>
</li>
</ol>
</li>
<li>
<h2 id="options">Options</h2>
<p>
There are several integration options available. In the following, first the general options are listed, and then lists the options for the individual services (Facebook, Twitter, Google+). <br />
Example of a call with options:
</p>
<pre>
<code>$('#socialshareprivacy').socialSharePrivacy({
services : {
facebook : {
'perma_option': 'off'
},
twitter : {
'status' : 'off'
},
gplus : {
'display_name' : 'Google Plus'
}
},
'cookie_domain' : 'heise.de'
});</code>
</pre>
<ol>
<li id="options_general">
<table summary="a list of the general optionen of socialSharePrivacy-Plug-Ins">
<caption>general options</caption>
<thead>
<tr>
<th>Option</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>info_link</td>
<td>http://www.heise.de/ct/artikel/2-Klicks-fuer-mehr-Datenschutz-1333879.html</td>
<td>
Link to detailed policy information, in this case, an article on the heise website</td>
</tr>
<tr>
<td>txt_help</td>
<td><em>Text</em></td>
<td>MouseOver-Text of the <em>i</em> icons</td>
</tr>
<tr>
<td>settings_perma</td>
<td>Permanently activate the share buttons:</td>
<td>Headline of the settings menu</td>
</tr>
<tr>
<td>cookie_path</td>
<td>/</td>
<td>path where the cookie is valid</td>
</tr>
<tr>
<td>cookie_domain</td>
<td><code>document.location.host</code></td>
<td>domain where the cookie is valid</td>
</tr>
<tr>
<td>cookie_expires</td>
<td>365</td>
<td>how many days the cookie is valid</td>
</tr>
<tr>
<td>css_path</td>
<td>socialshareprivacy/socialshareprivacy.css</td>
<td>path to the CSS file, if empty no stylesheet will be used.</td>
</tr>
<tr>
<td>uri</td>
<td>getURI</td>
<td>the URI that is passed on by the Buttons. Can be a constant value (z.B. <code>"http://www.heise.de"</code>) or can be a function (see <code>function getURI()</code> in the source code of the plug-in)</td>
</tr>
</tbody>
</table>
</li>
<li id="options_facebook">
<table summary="Facebook options from the socialSharePrivacy-Plug-In">
<caption>Options: Facebook</caption>
<thead>
<tr>
<th>Option</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>status</td>
<td>on</td>
<td>The user will be allowed to select Facebook.</td>
</tr>
<tr>
<td><del datetime="2011-10-04" cite="http://www.heise.de/extras/socialshareprivacy/#v1-2">app_id</del></td>
<td><em>removed (since Version 1.2)</em></td>
<td><del datetime="2011-10-04" cite="http://www.heise.de/extras/socialshareprivacy/#v1-2">Facebook app ID; is needed to use the <em>Recommend</em> button from Facebook.</del></td>
</tr>
<tr>
<td>dummy_img</td>
<td>socialshareprivacy/images/dummy_facebook.png</td>
<td>path to the static images</td>
</tr>
<tr>
<td>txt_info</td>
<td><em>Text</em></td>
<td>MouseOver text for the recommend button</td>
</tr>
<tr>
<td>txt_fb_off</td>
<td>not connected with Facebook</td>
<td>Text version of the button if Facebook is turned off. Normally not visible for the user.</td>
</tr>
<tr>
<td>txt_fb_on</td>
<td>connected with Facebook</td>
<td>Text version of the button if Facebook is turned on. Normally not visible for the user.</td>
</tr>
<tr>
<td>perma_option</td>
<td>on</td>
<td>The user has chosen to permanently turn on Facebook via a cookie.</td>
</tr>
<tr>
<td>display_name</td>
<td>Facebook</td>
<td>Display name of the service in the options.</td>
</tr>
<tr>
<td>referrer_track</td>
<td> </td>
<td>Appended to the end of the URL, can be used to track Referrers.</td>
</tr>
<tr>
<td>language</td>
<td>en_US</td>
<td>Language Settings</td>
</tr>
<tr>
<td>action</td>
<td>recommend</td>
<td>Test of the button: Recommend (<code>recommend</code>) or Like (<code>like</code>)</td>
</tr>
</tbody>
</table>
</li>
<li id="options_twitter">
<table summary="Twitter options from the socialSharePrivacy-Plug-In">
<caption>Options: Twitter</caption>
<thead>
<tr>
<th>Option</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>status</td>
<td>on</td>
<td>the User can select Twitter</td>
</tr>
<tr>
<td>dummy_img</td>
<td>socialshareprivacy/images/dummy_twitter.png</td>
<td>path to the static images</td>
</tr>
<tr>
<td>txt_info</td>
<td><em>Text</em></td>
<td>MouseOver text for the tweet button</td>
</tr>
<tr>
<td>txt_twitter_off</td>
<td>not connected with Twitter</td>
<td>Text version of the button, if twitter is turned off, normally not visible.</td>
</tr>
<tr>
<td>txt_twitter_on</td>
<td>connected with Twitter</td>
<td>Text version of the button, if twitter is turned on, normally not visible.</td>
</tr>
<tr>
<td>perma_option</td>
<td>on</td>
<td>The user has selected to permanently accept twitter via cookie.</td>
</tr>
<tr>
<td>display_name</td>
<td>Twitter</td>
<td>Display name of the service</td>
</tr>
<tr>
<td>referrer_track</td>
<td> </td>
<td>Appended to the end of the URL, can be used to track Referrer.</td>
</tr>
<tr>
<td>tweet_text</td>
<td><code>getTweetText</code></td>
<td>This function checks whether the meta tag <code>DC.title</code> is there and then uses those. If the tag <code>DC.creator</code> is set, then will be appended after a (" - "). Is <code>DC.title</code> does not exist, the <title> tag of the page is used.
This option can be overridden with a constant text ( typeof == string ) or a special function ( typeof == function ) that generates the text.
The passed text is always truncated to 120 characters and the final spaces are replaced with ….
</td>
</tr>
<tr>
<td>language</td>
<td>en</td>
<td>Language Settings (Default: "<code>en</code>")</td>
</tr>
</tbody>
</table>
</li>
<li id="options_gplus">
<table summary="Google+ settings of the socialSharePrivacy Plug-In">
<caption>Options: Google+</caption>
<thead>
<tr>
<th>Option</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>status</td>
<td>on</td>
<td>The user can select Google+</td>
</tr>
<tr>
<td>dummy_img</td>
<td>socialshareprivacy/images/dummy_gplus.png</td>
<td>path to the static images</td>
</tr>
<tr>
<td>txt_info</td>
<td><em>Text</em></td>
<td>MouseOver text from the „+1“ button</td>
</tr>
<tr>
<td>txt_gplus_off</td>
<td>not connected with Google+ </td>
<td>Text version of the button if G+ is turned off. Normally not visible for the user.</td>
</tr>
<tr>
<td>txt_gplus_on</td>
<td>Connected with Google+ </td>
<td>Text version of the button if G+ is turned on. Normally not visible for the user.</td>
</tr>
<tr>
<td>perma_option</td>
<td>on</td>
<td>The user has chosen to permanently activate Google+ (via Cookie)</td>
</tr>
<tr>
<td>display_name</td>
<td>Google+</td>
<td>Display name of the service in the options.</td>
</tr>
<tr>
<td>referrer_track</td>
<td> </td>
<td>Appended to the end of the URL, can be used to track Referrer.</td>
</tr>
<tr>
<td>language</td>
<td>en</td>
<td>Language Setting</td>
</tr>
</tbody>
</table>
</li>
</ol>
</li>
<li>
<h2 id="examples">Example Integration</h2>
<p>
The following are a few examples of integrations of popular configurations.
</p>
<ul>
<li>
<h3 id="only_fb">Only Show Facebook</h3>
<pre>
<code>$('#socialshareprivacy').socialSharePrivacy({
services : {
twitter : {
'status' : 'off'
},
gplus : {
'status' : 'off'
}
}
});</code>
</pre>
</li>
<li>
<h3 id="no_perma">Don't offer the option to permanently activate</h3>
<pre>
<code>$('#socialshareprivacy').socialSharePrivacy({
services : {
facebook : {
'perma_option' : 'off'
},
twitter : {
'perma_option' : 'off'
},
gplus : {
'perma_option' : 'off'
}
}
});</code>
</pre>
</li>
<li>
<h3 id="only_gplus_css_path">Only offer Google+ and specify your own path to a CSS file.</h3>
<pre>
<code>$('#socialshareprivacy').socialSharePrivacy({
services : {
facebook : {
'status' : 'off'
},
twitter : {
'status' : 'off'
}
},
'css_path' : '/style/plugins/socialshareprivacy.css'
});</code>
</pre>
</li>
<li>
<h3>Several 2-click button bars on one page</h3>
<h4>Option 1: A call to the plug-in with an appropriate selector</h4>
<pre>
<div class="something">
<h3><a href="http://www.heise.de">heise</a></h3>
<p>lorem ipsum</p>
<div class="social"></div>
</div>
<div class="something">
<h3><a href="http://www.heise.de/security/">heise security</a></h3>
<p>dolor sit amet</p>
<div class="social"></div>
</div>
<script>
$(".social").socialSharePrivacy({
uri : function(context) {
return $(context).parents(".something").find("h3 a").attr("href");
}
});
</script>
</pre>
<h4>Option 2: Multiple calls to the plug-in</h4>
<pre>
<div>
<h3><a href="http://www.heise.de">heise</a></h3>
<p>lorem ipsum</p>
<div id="one"></div>
</div>
<script>
$("#one").socialSharePrivacy({
uri : "http://www.heise.de"
});
</script>
<div>
<h3><a href="http://www.heise.de/security/">heise security</a></h3>
<p>dolor sit amet</p>
<div id="two"></div>
</div>
<script>
$("#two").socialSharePrivacy({
uri : "http://www.heise.de/security/"
});
</script>
</pre>
</li>
</ul>
</li>
<li>
<h2 id="url">URL</h2>
<p>The URL that is passed to the service can be controlled by an option.
By default, a function within the plug-in is used, and the URL of the current page document is taken from <code>document.location.href</code>, however, if the canonical URL is set ( <link rel="canonical"> ) then it will be used.
</p>
</li>
<li>
<h2 id="perma_option">Remember settings</h2>
<p>
Before the cookie is requested to check the user preferences, we first check if the plug-in is configured. If the plug-in is changed subsequently, the user has no disadvantages.<br />
For all services, if the save function is disabled (<code>'perma_option' : 'off'</code>) then the settings menu is not displayed.
</p>
</li>
<li>
<h2 id="licence">License</h2>
<p>
This plug-in is available under the MIT License (<a href="http://www.opensource.org/licenses/mit-license.php">http://www.opensource.org/licenses/mit-license.php</a>) and free to be used for private as well as commercial purposes.
</p>
</li>
<li>
<h2 id="logo">Logo</h2>
<p>
Our plug-in also contains a logo, which you are welcome to use.
<a href="socialshareprivacy/images/2-klick-logo.jpg"><img src="2-klick-logo_min.jpg" width="150" height="150" alt="Logo 2 Clicks for more Privacy" style="float: left;" /></a>
</p>
</li>
</ol>
</body>
</html>