Commit Graph

77 Commits (ea9f75881b1a2eeba0075c8928f690cfa8eff870)

Author SHA1 Message Date
Joey Hess 73eb892ba2 jquery source cleanup
* Add unminified jquery js and css files to source.
* Update to jquery 1.6.2, and jquery-ui 1.8.14.

The full files are included in the source but not the binary.

I'm not minifying the files as part of build because I don't want ikiwiki
to build depend on a javascript minifier. (Let alone need one at runtime).
Nor do I want to deal with any breakage caused by the minifier. These
files were taken from the debian packages.

The jquery-tmpl full file was taken from revision
66bb852217c49ae8c9a8f2522150354ae80463de of its git repository, which
matches the minified file I already had. I did not want to deal with possible
breakage in newer versions; this thing claims to need an ancient version of
jquery (1.4.2), and is perhaps only working by luck with the newer versions
as it is.
2011-08-24 16:25:03 -04:00
Joey Hess aef8bef8ac a few more jquery icons 2011-06-21 15:22:35 -04:00
Joey Hess 5f0dfdd1ea move images around
jquery-ui expects to find them in a specific place relative to it
2011-06-15 20:12:16 -04:00
Joey Hess 344a2a2582 jquery-ui icons 2011-06-15 20:04:27 -04:00
Joey Hess c901e1e80c move image 2011-06-15 19:48:33 -04:00
Joey Hess c9781b20bf added jquery templates 2011-06-15 19:33:22 -04:00
Joey Hess f3fd7696cf added jquery-ui for attachment interface 2011-06-15 19:30:34 -04:00
Joey Hess a695b5b2f8 updated jquery and made it its own underlay 2011-06-15 19:15:06 -04:00
Joey Hess e2b43578a6 load attachment javascript into template the clean way 2011-06-15 19:08:40 -04:00
Joey Hess f183fed372 deleted a lot of code ikiwiki does not need
removed most of the css, going for standard plain ikiwiki look

Removed support for image previews, file size limits, delete buttons,
maximum number of files, file size display. Ikiwiki handles all that.

Turned on autoupload.
2011-06-15 18:45:32 -04:00
Joey Hess 9a4e7b6500 add the blueimp jquery fileupload widget
from http://aquantum-demo.appspot.com/file-upload
git version 7f89121

removed some files ikiwiki does not need
2011-06-15 18:41:50 -04:00
Joey Hess 9744c11f80 openid: Syntax tweak to the javascript code to make it work with MSIE 7 (and MSIE 8 in compat mode). Thanks to Iain McLaren for reporting the bug and providing access to debug it. 2010-08-17 16:05:17 -04:00
Joey Hess c5b3ea0dd4 avoid insane use of javascript "array" 2010-05-27 23:57:00 -04:00
Joey Hess c305303b42 hide local signin when nothing is selected 2010-05-10 16:04:28 -04:00
Joey Hess bf19c01f29 use labels 2010-05-08 16:16:38 -04:00
Joey Hess c3e9215e1f moved non-openid signin form into same page as openid selector; show/hide as buttons are pressed 2010-05-08 15:57:39 -04:00
Joey Hess f0914b386b Revert "add gmail button"
This reverts commit 32a79523bb.

Buggy and I need sleep.
2010-05-08 02:53:18 -04:00
Joey Hess 32a79523bb add gmail button
It uses the google profile openid url, which results in a nicer openid
than the o8/id url.
2010-05-08 02:38:54 -04:00
Joey Hess 541298e668 avoid setting cookie for promptless buttons
I think it is clearer to not have such a button appear pre-selected
when entering the signin page, because that may suggest to the user
they don't need to click on it, and yet they do.
2010-05-08 02:15:04 -04:00
Joey Hess ac8a91fe06 improve selector layout 2010-05-08 00:40:36 -04:00
Joey Hess f05043ed80 gardening openid provider list
- fix url to flickr profile
- remove blogger; google property and uses their openid system;
  wants to sign user up for a blogger blog
- remove technorati, which dropped openid provider support
- AOL seems to call it a username, not a screenname
2010-05-08 00:18:58 -04:00
Joey Hess 3a1d81bd9c avoid scaling favicons
chromium's rather impressive jaggy-free scaling spoiled me, but in
iceweasel, scaled favicons look crap
2010-05-07 21:54:58 -04:00
Joey Hess ede2d1b46d adapt to ikiwiki
Upstream ships a collection of icons, but the licences of them are very
unclear, since most seem to be taken from the various openid provider
websites. That can't be included in ikiwiki. So, instead hotlink to
favicons of sites, and for large display, include the site name.

Removed vidoop.com, which is gone.

If an url is passed to init as the second parameter, add a "Local Login"
provider, which just links to do=signin.
2010-05-07 21:21:04 -04:00
Joey Hess 0800d25f10 modify labels to input box for consistency 2010-05-07 20:25:43 -04:00
Joey Hess 0f2bdbb968 use ikiwiki's replacement openid logo in input box 2010-05-07 20:20:28 -04:00
Joey Hess 7d152f5be5 modify openid selector to not default to http:// for openid
ikiwiki doesn't care if the http:// is there, and it seems cleaner and less
annoying this way
2010-05-07 20:17:31 -04:00
Joey Hess f8c2a67b3c pretty openid login
* openid: Incorporated a fancy openid-selector signin form.
  (http://code.google.com/p/openid-selector/)
* openid: Use "openid_identifier" as the form field, as required
  by OpenID Authentication v2.0 spec.
2010-05-07 20:14:25 -04:00
Joey Hess 1b8d2ce36b add minified jquery.js from openid-selector svn 2010-05-07 19:29:59 -04:00
Joey Hess 378c647768 patch hidden field setting code
Fixes http://code.google.com/p/openid-selector/issues/detail?id=11#c3
2010-05-07 19:10:50 -04:00
Joey Hess 76f6ff5f6b use me.yahoo.com
Fixes http://code.google.com/p/openid-selector/issues/detail?id=10
2010-05-07 19:02:55 -04:00
Joey Hess 7749350ecd r21 from http://code.google.com/p/openid-selector/source/checkout 2010-05-07 19:02:30 -04:00
Joey Hess e90d67d3c9 Moved javascript files under the ikiwiki/ directory, to avoid cluttering the top of the web root. This is another things that requires a wiki rebuild on upgrade to this version. 2010-04-24 00:54:59 -04:00
Joey Hess 0bd6c32766 fix file, should be symlink 2010-04-16 18:11:30 -04:00
Joey Hess ff422a1d89 Improve javascript onload handling.
I noticed the onload hook running twice sometimes when using chromium.
Change from using arguments.callee.done to a onload_done variable fixed it.
I guess that the callee differed in chromium.

Probably the cause of the problem is that chrome supports both
window.onload and document.addEventListener.
2009-12-12 15:47:47 -05:00
Joey Hess fa82be5524 add pagespec/sorting to underlay 2009-10-09 00:06:40 -04:00
Joey Hess e03d5c6a7c Remove deprecated ikiwiki/blog and ikiwiki/preprocessordirective pages from the basewiki. 2009-08-16 14:32:10 -04:00
Joey Hess ef003f48f4 Merge branch 'master' into po
Conflicts:
	debian/changelog
2009-05-19 13:07:47 -04:00
Joey Hess 2c74f09bb8 relativedate: Deal with clock skew.
If the server has a clock running a bit ahead of the web browsing client,
relativedate could cause somewhat confusing displays like "3 seconds from now"
for just posted things.

As a hack, avoid displaying times in the future if they're less than a
small slip forward. I chose 30 minutes because both client and server could
be wrong in different directions, while it's still close enough that "just
now" is not horribly wrong.
2009-04-23 13:39:42 -04:00
intrigeri 5c2f6cb893 Merge commit 'upstream/master' into prv/po 2009-01-01 13:34:00 +01:00
Joey Hess c1fa208f25 remove top-level directive page from basewiki 2008-12-24 16:29:31 -05:00
intrigeri 17bab92c31 added symlink to pagespec/po in basewiki to fix the build
else basewiki_brokenlinks.t fails.

Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-07 22:53:53 +01:00
Joey Hess ee1ccfa863 use relativedate as the css class for dates that should display relative 2008-10-20 19:22:22 -04:00
Joey Hess 002be0c87a partial support for calling onload once the DOM is ready
This adds support for gecko and newer versions of opera
to call onload once the DOM is ready, rather than waiting for
all images in the page to load. Makes relativedate behave
somewhat better.

Dealing with this means jumping into the browser
incompatability waters that I prefer to avoid.
Full solutions for most of the major browsers are listed here:
http://dean.edwards.name/weblog/2006/06/again/

However, no *license* is listed there, so I can't use that code. Also, the more
involved code appears to have various issues (such as the inline IE code not
working via https). So I only added the simple call to a hook needed
for gecko/opera.

It seems that the only standards-compliant way to do this is using the
`defer` attribute to a `script` tag, using an external script that will be
loaded once the DOM is ready, and can call onload. However, that has
browser compatability issues of its own, since not all browsers honor
`defer`.

Perhaps I should really just be using one of the javascript frameworks, that
include code to solve this for the major browsers. But something about them
still puts me off, and this issue is minor enough that I'm willing to live
with incomplete support for now.
2008-10-19 15:45:29 -04:00
Joey Hess 18806fa6b0 allow ikiwiki.js to be loaded twice w/o clobbering previous hooks
Clearly it's suboptimal for it to be loaded twice, but this is a quick fix
at least.
2008-10-18 12:47:08 -04:00
Joey Hess 7390a7a072 relativedate: New javascript-alicious plugin that makes all dates display relative, in a very nice way, if I say so myself. 2008-10-17 20:47:32 -04:00
Joey Hess 79b376f991 Add an underlay for javascript, and add ikiwiki.js containing some utility code.
* Add an underlay for javascript, and add ikiwiki.js containing some utility
  code.
* toggle: Stop embedding the full toggle code on each page using it, and
  move it to toggle.js in the javascript underlay.
2008-10-17 20:28:18 -04:00
Joey Hess e1bca54a59 replace subdir link with link to the one page from it we want 2008-09-12 16:22:22 -04:00
Joey Hess 0187c2ba0d Removed old redirecton pages from basewiki (helponformatting, markdown, openid, pagespec, preprocessordirective, subpage, wikilink). 2008-09-12 16:15:20 -04:00
Joey Hess e9468fd5eb Removed the obsolete blog page from the basewiki. ikiwiki/blog still remains, but is now deprecated too. 2008-09-11 20:15:25 -04:00
Joey Hess 135628f6d4 move inline docs to ikiwiki/directive/inline
ikiwiki/blog will be going away
2008-09-11 19:39:35 -04:00