PageSourceSearch

https://slideshowjp.com/theme/issuu/static/common.js

js slideshowjp.com collected 2026-10-02 05:59:51 UTC 1,330 bytes, 86 lines download raw bytes

1$(function()
2{
3	var info = $('.upload-info');
4
5	function progress(value)
6	{
7		$('.progress', info).val(value);
8		var p = value + '%';
9		$('.progress-bar', info).width(p).text(p);
10	}
11
12	function upload(files)
13	{
14		if (files.length != 1)
15		{
16			console.log('BAD FILES.LENGTH', files.length);
17		}
18
19		FileAPI.upload(
20		{
21			url: FileAPI.storeUrl,
22			data: {
23				userId: FileAPI.currentUserId,
24				redirect: FileAPI.afterUploadRedirect,
25				isFlashUploader: 'yes'
26			},
27			files:
28			{
29				file: files
30			},
31			prepare: function(evt)
32			{
33				info.show();
34				progress(0);
35			},
36			progress: function(evt)
37			{
38				progress(Math.floor(
39					evt.loaded / evt.total * 100));
40			},
41			complete: function (err, xhr)
42			{
43				setTimeout(function()
44				{
45					info.hide();
46				},
47				10000);
48
49				/*
50				if (err)
51				{
52					$('.upload > .btn').attr('disabled', 'disabled');
53				}
54				*/
55
56				try
57				{
58					var redirect = xhr.responseText.substring(10);
59					document.location.href = redirect;
60				}
61				catch (e) {}
62			}
63		});
64	}
65
66	$('.upload > input').on('change', function(e)
67	{
68		upload(FileAPI.getFiles(e));
69	});
70
71	$('.upload-info .close').on('click', function(e)
72	{
73		info.hide();
74	});
75
76	$('.landing').dnd(
77		function(over)
78	{
79		$('.container', this).toggleClass('upload-area', over);
80	},
81		function(files)
82	{
83		upload(files);
84	});
85});
86

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.