projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c585a57
)
Update Reference Universe widget documentation.
author
Mike Taylor
<mike@indexdata.com>
Fri, 9 Jan 2015 11:37:23 +0000
(11:37 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Fri, 9 Jan 2015 11:37:23 +0000
(11:37 +0000)
examples/htdocs/mkws-widget-ru.readme
patch
|
blob
|
history
diff --git
a/examples/htdocs/mkws-widget-ru.readme
b/examples/htdocs/mkws-widget-ru.readme
index
2a1c4e4
..
9fd05da
100644
(file)
--- a/
examples/htdocs/mkws-widget-ru.readme
+++ b/
examples/htdocs/mkws-widget-ru.readme
@@
-5,6
+5,7
@@
Simply paste this inline with the markup on any page:
<script src="//mkws.indexdata.com/mkws-complete.js"></script>
<script src="//mkws.indexdata.com/mkws-widget-ru.js"></script>
<script src="//mkws.indexdata.com/mkws-complete.js"></script>
<script src="//mkws.indexdata.com/mkws-widget-ru.js"></script>
+ <script>var mkws_config = { sp_auth_credentials: "paratext/paratext_mkc" }</script>
<link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws-widget-ru.css" />
<div class="mkws-reference-universe" autosearch="!param!q"></div>
<link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws-widget-ru.css" />
<div class="mkws-reference-universe" autosearch="!param!q"></div>
@@
-17,6
+18,10
@@
You need to include two scripts: one for MKWS and one for the Reference Universe
<script src="//mkws.indexdata.com/mkws-complete.js"></script>
<script src="//mkws.indexdata.com/mkws-widget-ru.js"></script>
<script src="//mkws.indexdata.com/mkws-complete.js"></script>
<script src="//mkws.indexdata.com/mkws-widget-ru.js"></script>
+You also need to tell the widget how to authenticate onto the searching service:
+
+ <script>var mkws_config = { sp_auth_credentials: "paratext/paratext_mkc" }</script>
+
The provided stylesheet is generic and you're encouraged to replace it entirely by styling the new elements to fit seamlessly with your content.
<link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws-widget-ru.css" />
The provided stylesheet is generic and you're encouraged to replace it entirely by styling the new elements to fit seamlessly with your content.
<link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws-widget-ru.css" />