Discuz.Web/space/modules/ngpod.xml

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?xml version="1.0" encoding="UTF-8" ?>
<Module>
	<ModulePrefs
		title="National Geographic POD"
		title_url="http://lava.nationalgeographic.com/pod/"
		directory_title="National Geographic Photo of the Day"
		description="National Geographic Photo of the Day"
		author="Cameron Hall"
		author_email="drbeagledotcom+modulefeedback@gmail.com"
    author_affiliation="Cornell University Student"
		author_location="Ithaca, NY, USA"
		screenshot="http://drbeagledotcom.googlepages.com/ngpod.png"
		thumbnail="http://drbeagledotcom.googlepages.com/ngpodtb.png"
    scaling="false"
		render_inline="optional"
    author_photo="http://drbeagledotcom.googlepages.com/profile.png"
    author_aboutme="2008 Information Science student at Cornell University. Enjoy doing work, but love getting distracted by google modules."
    author_link="http://drbeagle.com/"
    author_quote="So long, and thanks for all the fish"
		>
		<Require feature="dynamic-height" />
	</ModulePrefs>
	<UserPref name="per" 
    display_name="Percent" 
    datatype="string" 
    default_value=".65" 
    required="true" />
	<Content type="html-inline">
		<![CDATA[
<div
	id="NatGeoPOD"
	style="
		margin: 0px auto;
		text-align: center;
		font-size: .75em;
		font-weight: bold;
	">
</div>
	<script type="text/javascript">
		var pod = "http://lava.nationalgeographic.com/pod/";
		var base = "http://lava.nationalgeographic.com";
		var html = "";
		var imgW = "470";
		var imgH = "325";
		var error = "";
		
		function getPOD(percent) {
			_IG_FetchContent(pod, function (responseText) {
				if (responseText == "") {
					html += 'Photo Data not available, please try a little later.<br />';
					html += '<a href="'+pod+'" target="_blank">';
					html += '<img id="ngpodimg" src="http://drbeagledotcom.googlepages.com/ngpoderror.png" border="0"></a><br />';
					html += '<a href="'+base+'/cgi-bin/pod/archive.cgi"';
					html += ' target="_blank">POD Archive</a>';
					_gel('NatGeoPOD').innerHTML = html;
					return;
				} else {
					var c = responseText;
					RegExp.multiline = true;
					var regExp = /\/pod\/pictures\/normal\/[a-zA-Z0-9._%\-]+\.jpg/;
后面还有 29 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。