+ self._initial_mark = null;
+ function clean_initial_mark() {
+ if (self._initial_mark) {
+ self._initial_mark.remove();
+ self._initial_mark = null;
+ }
+ }
+ var initial_hash = window.location.hash;
+ if (initial_hash) {
+ var mk = null;
+ if (initial_hash.startsWith('#object-')) {
+ $("[href=#picture-objects]").trigger('click');
+ } else if (initial_hash.startsWith('#theme-')) {
+ $("[href=#picutre-themes]").trigger('click');
+ }
+ mk = $("[href=" + initial_hash + "]").eq(0);
+ self._initial_mark = self.createMark({
+ label: mk.text(),
+ coords: mk.data('coords')
+ });
+ }
+
+