├── 404.php ├── LICENSE ├── README.md ├── archive.php ├── category.php ├── comments.php ├── font ├── iconfont.eot ├── iconfont.svg ├── iconfont.ttf └── iconfont.woff ├── footer.php ├── functions.php ├── header.php ├── images ├── 404.png ├── bullet.png ├── dashang.gif ├── dashang.png ├── dropdown-line.png ├── favicon.ico ├── footer-line.png ├── line-v.png ├── line.png ├── logo.png ├── menu-hover.png ├── menu-line.png ├── noize.png └── search.png ├── index.php ├── js ├── ddsmoothmenu.js ├── jquery-1.6.4.min.js ├── jquery.corner.js └── scripts.js ├── page.php ├── screenshot.png ├── search.php ├── sidebar.php ├── single.php └── style.css /404.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |

5 |

6 |
7 |
8 |
9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JieStyle One 2 | 3 | WordPress Themes 4 | 5 | ![TangStyle](https://tangjie.me/media/themes/JieStyle-One.jpg) 6 | 7 | ## 主题介绍 8 | * 商务领航,尽现成熟稳重的个人小站风格 9 | * 响应式Web设计,自适应电脑、平板电脑、移动设备 10 | * 图标字体库,自适应各种终端设备,保证图形图标清晰无锯齿,支持Retina(视网膜屏幕) 11 | * 跨浏览器兼容,支持IE6/7/8/9/10/11、Chrome、Safari、Opera 12 | * 支持主题控制面板,后台方便的设置SEO、统计代码、分享代码 13 | * 针对SEO进行改良,支持内页自动获取关键字、描述 14 | * 支持WordPress的菜单系统,无限级下拉菜单(支持菜单鼠标悬停下拉功能) 15 | * 支持嵌套评论 16 | * 支持Gravatar 17 | * 支持WordPress 4.x版本 18 | 19 | ## 版本信息 20 | * 主题名称:JieStyle One 21 | * 主题作者:唐杰 22 | * 作者博客:[https://tangjie.me](https://tangjie.me) 23 | * 开源协议:GNU General Public License v3.0 24 | * 首发时间:2014-08-03 25 | * 最新版本:v1.3 26 | * 最后更新:2018-07-16 27 | 28 | ## 主题配置 29 | * 1、配置JieStyle的设置(外观 -> 主题 -> JieStyle设置) 30 | * 2、右侧导航:外观 -> 主题 -> 菜单 31 | * 如果您已经有菜单则在“主题位置”的设置里选中并保存,如果没有菜单,则在右栏创建菜单。 32 | * 3、ICP备案号:设置 -> 常规 33 | * WordPress原生带ICP备案号设置功能,主题只是调用了系统设置。 34 | 35 | ## 特别声明 36 | * 本主题可以自由分享传播,但请署名及注明出处。 37 | * 本主题免费下载,不限个人或商业使用,但请使用中保留作者版权。 38 | * 如果愿意,请给作者博客一个友情链接,谢谢。 39 | * 链接名称: [产品经理](https://tangjie.me) 40 | * 链接地址: [https://tangjie.me](https://tangjie.me) 41 | -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |

5 |

6 |
7 |
8 | 9 |

' . get_the_date() . '' ); ?>

10 | 11 |

' . get_the_date( 'F Y' ) . '' ); ?>

12 | 13 |

' . get_the_date( 'Y' ) . '' ); ?>

14 | 15 |

' . single_tag_title( '', false ) . '' ); ?>

16 | 17 |

18 | 19 |
20 | 21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |

29 |
󰁦
30 |
󰁠
31 |
32 |
33 |
34 |

post_content)), 0, 310,""); ?>阅读全文...

35 |
36 | 37 | 38 |
39 |
40 |
41 |

分类目录

42 |
    43 | 44 |
45 |
46 |
47 |

热门文章

48 |
    49 | 50 |
51 |
52 |
53 |

随机文章

54 | 61 |
62 |
63 |

标签云

64 |
65 | 66 |
67 |
68 |
69 |
70 |
71 | 75 |
76 | -------------------------------------------------------------------------------- /category.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |

5 |

6 |
7 |
8 |

分类:

9 |
10 | 11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |

19 |
󰁦
20 |
󰁠
21 |
22 |
23 |
24 |

post_content)), 0, 310,""); ?>阅读全文...

25 |
26 | 27 | 28 |
29 |
30 |
31 |

分类目录

32 |
    33 | 34 |
35 |
36 |
37 |

热门文章

38 |
    39 | 40 |
41 |
42 |
43 |

随机文章

44 | 51 |
52 |
53 |

标签云

54 |
55 | 56 |
57 |
58 |
59 |
60 |
61 | 65 |
66 | -------------------------------------------------------------------------------- /comments.php: -------------------------------------------------------------------------------- 1 | 5 | 6 |

7 |
    8 | 'tangstyle_comment', 'style' => 'ol' ) ); ?> 9 |
10 | 1 && get_option( 'page_comments' ) ) : ?> 11 | 15 | 16 | 17 |

18 | 19 | -------------------------------------------------------------------------------- /font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/font/iconfont.eot -------------------------------------------------------------------------------- /font/iconfont.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Created by FontForge 20120731 at Fri Sep 12 06:43:19 2014 6 | By Ads 7 | 8 | 9 | 10 | 24 | 26 | 28 | 30 | 32 | 36 | 40 | 42 | 45 | 49 | 54 | 61 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/font/iconfont.ttf -------------------------------------------------------------------------------- /font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/font/iconfont.woff -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 2 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | __( 'JieStyle导航菜单' ),)); 20 | 21 | add_theme_support( 'post-thumbnails' ); 22 | set_post_thumbnail_size( 200, 150 ); 23 | 24 | //去除头部无用代码 25 | remove_action( 'wp_head', 'feed_links', 2 ); 26 | remove_action( 'wp_head', 'feed_links_extra', 3 ); 27 | remove_action( 'wp_head', 'rsd_link' ); 28 | remove_action( 'wp_head', 'wlwmanifest_link' ); 29 | remove_action( 'wp_head', 'index_rel_link' ); 30 | remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); 31 | remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); 32 | remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); 33 | remove_action( 'wp_head', 'locale_stylesheet' ); 34 | remove_action( 'wp_head', 'noindex', 1 ); 35 | remove_action( 'wp_head', 'wp_print_head_scripts', 9 ); 36 | remove_action( 'wp_head', 'wp_generator' ); 37 | remove_action( 'wp_head', 'rel_canonical' ); 38 | remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); 39 | remove_action( 'wp_head', 'wp_oembed_add_host_js'); 40 | remove_action( 'wp_head', 'wp_resource_hints', 2 ); 41 | remove_action( 'wp_head', 'rest_output_link_wp_head', 10 ); 42 | remove_action( 'wp_head', 'wp_oembed_add_discovery_links', 10 ); 43 | remove_action( 'wp_footer', 'wp_print_footer_scripts' ); 44 | remove_action( 'publish_future_post', 'check_and_publish_future_post', 10, 1 ); 45 | remove_action( 'template_redirect', 'wp_shortlink_header', 11, 0 ); 46 | remove_action( 'template_redirect', 'rest_output_link_header', 11, 0 ); 47 | remove_action( 'rest_api_init', 'wp_oembed_register_route'); 48 | remove_filter( 'rest_pre_serve_request', '_oembed_rest_pre_serve_request', 10, 4); 49 | remove_filter( 'oembed_dataparse', 'wp_filter_oembed_result', 10); 50 | remove_filter( 'oembed_response_data', 'get_oembed_response_data_rich', 10, 4); 51 | 52 | add_filter('rest_enabled', '__return_false'); 53 | add_filter('rest_jsonp_enabled', '__return_false'); 54 | 55 | //禁用Emoji表情 56 | function disable_emojis() { 57 | remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); 58 | remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); 59 | remove_action( 'wp_print_styles', 'print_emoji_styles' ); 60 | remove_action( 'admin_print_styles', 'print_emoji_styles' ); 61 | remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); 62 | remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); 63 | remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); 64 | add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' ); 65 | } 66 | add_action( 'init', 'disable_emojis' ); 67 | function disable_emojis_tinymce( $plugins ) { 68 | if ( is_array( $plugins ) ) { 69 | return array_diff( $plugins, array( 'wpemoji' ) ); 70 | } else { 71 | return array(); 72 | } 73 | } 74 | 75 | //替换Gravatar服务器 76 | function replace_gravatar($avatar) { 77 | $avatar = str_replace(array("//gravatar.com/", "//secure.gravatar.com/", "//www.gravatar.com/", "//0.gravatar.com/", "//1.gravatar.com/", "//2.gravatar.com/", "//cn.gravatar.com/"), "//sdn.geekzu.org/", $avatar); 78 | return $avatar; 79 | } 80 | add_filter( 'get_avatar', 'replace_gravatar' ); 81 | 82 | //评论模板 83 | function tangstyle_comment( $comment, $args, $depth ) { 84 | $GLOBALS['comment'] = $comment; 85 | switch ( $comment->comment_type ) : 86 | case 'pingback' : 87 | case 'trackback' : 88 | ?> 89 |
  • id="comment-"> 90 |

    ', '' ); ?>

    91 | 97 |
  • 98 |
    99 |
    100 |
    101 |
    102 | %s'), get_comment_author_link()) ?> 103 | 104 | __( '回复', 'tangstyle' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> 105 | ', '' ); ?> 106 |
    107 | 108 | comment_approved ) : ?>

    109 |
    110 |
    111 | posts WHERE post_type = 'post' AND TO_DAYS(now()) - TO_DAYS(post_date) < $days AND ($wpdb->posts.`post_status` = 'publish' OR $wpdb->posts.`post_status` = 'inherit') ORDER BY comment_count DESC LIMIT 0 , $posts_num "; 121 | $posts = $wpdb->get_results($sql); 122 | $output = ""; 123 | foreach ($posts as $post){ 124 | $output .= "\n
  • ID)."\" title=\"".$post->post_title."\" >".$post->post_title."
  • "; 125 | } 126 | echo $output; 127 | } 128 | 129 | //分页 130 | function pagination($query_string){ 131 | global $posts_per_page, $paged; 132 | $my_query = new WP_Query($query_string ."&posts_per_page=-1"); 133 | $total_posts = $my_query->post_count; 134 | if(empty($paged))$paged = 1; 135 | $prev = $paged - 1; 136 | $next = $paged + 1; 137 | $range = 5; // 分页数设置 138 | $showitems = ($range * 2)+1; 139 | $pages = ceil($total_posts/$posts_per_page); 140 | if(1 != $pages){ 141 | echo "\n"; 152 | } 153 | } 154 | 155 | //彩色标签云 156 | function colorCloud($text) { 157 | $text = preg_replace_callback('||i', 'colorCloudCallback', $text); 158 | return $text; 159 | } 160 | function colorCloudCallback($matches) { 161 | $text = $matches[1]; 162 | $color = dechex(rand(0,16777215)); 163 | $pattern = '/style=(\'|\")(.*)(\'|\")/i'; 164 | $text = preg_replace($pattern, "style=\"color:#{$color};$2;\"", $text); 165 | return ""; 166 | } 167 | add_filter('wp_tag_cloud', 'colorCloud', 1); 168 | 169 | //新窗口打开评论里的链接 170 | function remove_comment_links() { 171 | global $comment; 172 | $url = get_comment_author_url(); 173 | $author = get_comment_author(); 174 | if ( empty( $url ) || 'http://' == $url ) 175 | $return = $author; 176 | else 177 | $return = "$author"; 178 | return $return; 179 | } 180 | add_filter('get_comment_author_link', 'remove_comment_links'); 181 | remove_filter('comment_text', 'make_clickable', 9); 182 | 183 | // 评论回应邮件通知 184 | function comment_mail_notify($comment_id) { 185 | $admin_email = get_bloginfo ('admin_email'); // $admin_email 可改为你指定的 e-mail. 186 | $comment = get_comment($comment_id); 187 | $comment_author_email = trim($comment->comment_author_email); 188 | $parent_id = $comment->comment_parent ? $comment->comment_parent : ''; 189 | $to = $parent_id ? trim(get_comment($parent_id)->comment_author_email) : ''; 190 | $spam_confirmed = $comment->comment_approved; 191 | if (($parent_id != '') && ($spam_confirmed != 'spam') && ($to != $admin_email) && ($comment_author_email == $admin_email)) { 192 | $wp_email = 'no-reply@' . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME'])); // no-reply 可改为可用的 e-mail. 193 | $subject = '您在 [' . get_option("blogname") . '] 的评论有新的回复'; 194 | $message = ' 195 |
    196 |

    ' . trim(get_comment($parent_id)->comment_author) . ', 您好!

    197 |

    您曾在 [' . get_option("blogname") . '] 的文章 《' . get_the_title($comment->comment_post_ID) . '》 上发表评论:
    ' 198 | . nl2br(get_comment($parent_id)->comment_content) . '

    199 |

    ' . trim($comment->comment_author) . ' 给您的回复如下:
    ' 200 | . nl2br($comment->comment_content) . '

    201 |

    您可以点击 查看回复的完整內容

    202 |

    欢迎再次光临 ' . get_option('blogname') . '

    203 |

    (此邮件由系统自动发出,请勿直接回复.)

    204 |
    '; 205 | $message = convert_smilies($message); 206 | $from = "From: \"" . get_option('blogname') . "\" <$wp_email>"; 207 | $headers = "$from\nContent-Type: text/html; charset=" . get_option('blog_charset') . "\n"; 208 | wp_mail( $to, $subject, $message, $headers ); 209 | //echo 'mail to ', $to, '
    ' , $subject, $message; // for testing 210 | } 211 | } 212 | add_action('comment_post', 'comment_mail_notify'); 213 | ?> 214 | "标题(Title)", 219 | "id" => $shortname."_title", 220 | "type" => "text", 221 | "std" => "网站标题", 222 | "explain" => "SEO设置
    它将显示在网站首页的title标签里,必填项。" 223 | ), 224 | array("name" => "描述(Description)", 225 | "id" => $shortname."_description", 226 | "type" => "textarea", 227 | "css" => "class='h80px'", 228 | "std" => "网站描述", 229 | "explain" => "SEO设置
    它将显示在网站首页的meta标签的description属性里" 230 | ), 231 | array("name" => "关键字(KeyWords)", 232 | "id" => $shortname."_keywords", 233 | "type" => "textarea", 234 | "css" => "class='h60px'", 235 | "std" => "网站关键字", 236 | "explain" => "SEO设置
    多个关键字请以英文逗号隔开,它将显示在网站首页的meta标签的keywords属性里" 237 | ), 238 | array("name" => "版权年份", 239 | "id" => $shortname."_years", 240 | "std" => "2012", 241 | "type" => "text", 242 | "explain" => "它将显示在页面底部" 243 | ), 244 | array("name" => "是否显示新浪微博", 245 | "id" => $shortname."_weibo", 246 | "type" => "select", 247 | "std" => "隐藏", 248 | "options" => array("隐藏", "显示")), 249 | array("name" => "新浪微博地址", 250 | "id" => $shortname."_weibo_url", 251 | "type" => "text", 252 | "std" => "https://weibo.com/782622", 253 | "explain" => "请输入您的新浪微博地址"), 254 | array("name" => "是否显示Twitter", 255 | "id" => $shortname."_twitter", 256 | "type" => "select", 257 | "std" => "隐藏", 258 | "options" => array("隐藏", "显示")), 259 | array("name" => "Twitter地址", 260 | "id" => $shortname."_twitter_url", 261 | "type" => "text", 262 | "std" => "https://twitter.com/JieTangOK", 263 | "explain" => "请输入您的Twitter地址"), 264 | array("name" => "是否显示Facebook", 265 | "id" => $shortname."_facebook", 266 | "type" => "select", 267 | "std" => "隐藏", 268 | "options" => array("隐藏", "显示")), 269 | array("name" => "Facebook地址", 270 | "id" => $shortname."_facebook_url", 271 | "type" => "text", 272 | "std" => "https://www.facebook.com/jietangok", 273 | "explain" => "请输入您的Facebook地址"), 274 | array("name" => "分享代码", 275 | "id" => $shortname."_share", 276 | "type" => "textarea", 277 | "css" => "class='h80px'", 278 | "explain" => "请在此处输入您的分享代码,来自第三方或者您自己的代码,它将显示在文章的结尾处,如果没有请留空
    第三方分享工具主要有:百度分享、JiaThis、BShare 等等" 279 | ), 280 | array("name" => "统计代码", 281 | "id" => $shortname."_tongji", 282 | "type" => "textarea", 283 | "css" => "class='h80px'", 284 | "explain" => "页面底部可以显示第三方统计
    您可以放一个或者多个统计代码" 285 | ), 286 | array("name" => "文章下方广告", 287 | "id" => $shortname."_ads_article", 288 | "type" => "textarea", 289 | "css" => "class='h80px'", 290 | "explain" => "文章页正文下方广告位
    宽度:728像素;高度不限
    留空则不显示" 291 | ), 292 | array("name" => "全局底部广告", 293 | "id" => $shortname."_ads_bottom", 294 | "type" => "textarea", 295 | "css" => "class='h80px'", 296 | "explain" => "页面底部广告位,全局显示
    宽度:728像素;高度不限
    留空则不显示" 297 | ), 298 | ); 299 | function mytheme_add_admin() { 300 | global $themename, $shortname, $options; 301 | if ( $_GET['page'] == basename(__FILE__) ) { 302 | if ( 'save' == $_REQUEST['action'] ) { 303 | foreach ($options as $value) { 304 | update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } 305 | foreach ($options as $value) { 306 | if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } } 307 | header("Location: themes.php?page=functions.php&saved=true"); 308 | die; 309 | } else if( 'reset' == $_REQUEST['action'] ) { 310 | foreach ($options as $value) { 311 | delete_option( $value['id'] ); 312 | update_option( $value['id'], $value['std'] ); 313 | } 314 | header("Location: themes.php?page=functions.php&reset=true"); 315 | die; 316 | } 317 | } 318 | add_theme_page($themename." 设置", "$themename 设置", 'edit_themes', basename(__FILE__), 'mytheme_admin'); 319 | } 320 | function mytheme_admin() { 321 | global $themename, $shortname, $options; 322 | if ( $_REQUEST['saved'] ) echo '

    '.$themename.' 设置已保存。

    '; 323 | if ( $_REQUEST['reset'] ) echo '

    '.$themename.' 设置已重置。

    '; 324 | ?> 325 | 337 |
    338 |

    主题设置

    339 |
    340 |
    主题作者:唐杰 ¦ 当前版本:v1.3 ¦ 主题介绍、使用帮助及升级请访问:https://tangjie.me/JieStyle
    341 |
    342 |
    343 | 345 |
    346 |

    347 |
    " />
    348 |
    349 |
    350 | 351 |
    352 |

    353 |
    354 |
    355 |
    356 | 357 |
    358 |

    359 |
    360 | 369 |
    370 |
    371 |
    372 | 373 | 374 |
    375 |
    376 | 377 | 378 |
    379 |
    380 | 381 |
    382 |
    383 | 384 | 385 |
    386 |
    387 | 388 |
    389 | -------------------------------------------------------------------------------- /header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | <?php echo stripslashes(get_option('tang_title')); ?> 7 | 搜索结果 - <?php bloginfo('name'); ?> 8 | <?php echo trim(wp_title('',0)); ?> - <?php bloginfo('name'); ?> 9 | <?php echo trim(wp_title('',0)); ?> - <?php bloginfo('name'); ?> 10 | <?php single_cat_title(); ?> - <?php bloginfo('name'); ?> 11 | <?php the_time('F'); ?> - <?php bloginfo('name'); ?> 12 | <?php single_tag_title("", true); ?> - <?php bloginfo('name'); ?> 13 | post_excerpt) { 24 | $description = $post->post_excerpt; 25 | } else { 26 | if(preg_match('/

    (.*)<\/p>/iU',trim(strip_tags($post->post_content,"

    ")),$result)){ 27 | $post_content = $result['1']; 28 | } else { 29 | $post_content_r = explode("\n",trim(strip_tags($post->post_content))); 30 | $post_content = $post_content_r['0']; 31 | } 32 | $description = utf8Substr($post_content,0,220); 33 | } 34 | $keywords = ""; 35 | $tags = wp_get_post_tags($post->ID); 36 | foreach ($tags as $tag ) { 37 | $keywords = $keywords . $tag->name . ","; 38 | } 39 | } 40 | ?> 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 61 | 62 | 63 | 64 |

    -------------------------------------------------------------------------------- /images/404.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/images/404.png -------------------------------------------------------------------------------- /images/bullet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/images/bullet.png -------------------------------------------------------------------------------- /images/dashang.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/images/dashang.gif -------------------------------------------------------------------------------- /images/dashang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/images/dashang.png -------------------------------------------------------------------------------- /images/dropdown-line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/images/dropdown-line.png -------------------------------------------------------------------------------- /images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/images/favicon.ico -------------------------------------------------------------------------------- /images/footer-line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/images/footer-line.png -------------------------------------------------------------------------------- /images/line-v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/images/line-v.png -------------------------------------------------------------------------------- /images/line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/images/line.png -------------------------------------------------------------------------------- /images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/images/logo.png -------------------------------------------------------------------------------- /images/menu-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/images/menu-hover.png -------------------------------------------------------------------------------- /images/menu-line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/images/menu-line.png -------------------------------------------------------------------------------- /images/noize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/images/noize.png -------------------------------------------------------------------------------- /images/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/images/search.png -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 |

    5 |

    6 |
    7 |
    8 | 9 | 10 |

    [置顶]

    11 | 12 |
    13 |
    14 |
    15 |
    16 |
    17 |
    18 |
    19 |

    20 |
    󰁦
    21 |
    󰁠
    22 |
    23 |
    24 |
    25 |

    post_content)), 0, 310,""); ?>阅读全文...

    26 |
    27 | 28 | 29 | 30 |
    31 |
    32 |
    33 |

    分类目录

    34 |
      35 | 36 |
    37 |
    38 |
    39 |

    热门文章

    40 |
      41 | 42 |
    43 |
    44 |
    45 |

    随机文章

    46 | 53 |
    54 |
    55 |

    标签云

    56 |
    57 | 58 |
    59 |
    60 |
    61 |

    最新评论

    62 | 74 |
    75 |
    76 |

    友情链接

    77 |
      78 | 79 |
    80 |
    81 |
    82 |
    83 |
    84 | 88 |
    89 | -------------------------------------------------------------------------------- /js/ddsmoothmenu.js: -------------------------------------------------------------------------------- 1 | //** Smooth Navigational Menu- By Dynamic Drive DHTML code library: http://www.dynamicdrive.com 2 | //** Script Download/ instructions page: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/ 3 | //** Menu created: Nov 12, 2008 4 | 5 | //** Dec 12th, 08" (v1.01): Fixed Shadow issue when multiple LIs within the same UL (level) contain sub menus: http://www.dynamicdrive.com/forums/showthread.php?t=39177&highlight=smooth 6 | 7 | //** Feb 11th, 09" (v1.02): The currently active main menu item (LI A) now gets a CSS class of ".selected", including sub menu items. 8 | 9 | //** May 1st, 09" (v1.3): 10 | //** 1) Now supports vertical (side bar) menu mode- set "orientation" to 'v' 11 | //** 2) In IE6, shadows are now always disabled 12 | 13 | //** July 27th, 09" (v1.31): Fixed bug so shadows can be disabled if desired. 14 | //** Feb 2nd, 10" (v1.4): Adds ability to specify delay before sub menus appear and disappear, respectively. See showhidedelay variable below 15 | 16 | var ddsmoothmenu={ 17 | 18 | //Specify full URL to down and right arrow images (23 is padding-right added to top level LIs with drop downs): 19 | arrowimages: {down:[], right:[]}, 20 | transition: {overtime:300, outtime:300}, //duration of slide in/ out animation, in milliseconds 21 | shadow: {enable:false, offsetx:5, offsety:5}, //enable shadow? 22 | showhidedelay: {showdelay: 100, hidedelay: 200}, //set delay in milliseconds before sub menus appear and disappear, respectively 23 | 24 | ///////Stop configuring beyond here/////////////////////////// 25 | 26 | detectwebkit: navigator.userAgent.toLowerCase().indexOf("applewebkit")!=-1, //detect WebKit browsers (Safari, Chrome etc) 27 | detectie6: document.all && !window.XMLHttpRequest, 28 | 29 | getajaxmenu:function($, setting){ //function to fetch external page containing the panel DIVs 30 | var $menucontainer=$('#'+setting.contentsource[0]) //reference empty div on page that will hold menu 31 | $menucontainer.html("Loading Menu...") 32 | $.ajax({ 33 | url: setting.contentsource[1], //path to external menu file 34 | async: true, 35 | error:function(ajaxrequest){ 36 | $menucontainer.html('Error fetching content. Server Response: '+ajaxrequest.responseText) 37 | }, 38 | success:function(content){ 39 | $menucontainer.html(content) 40 | ddsmoothmenu.buildmenu($, setting) 41 | } 42 | }) 43 | }, 44 | 45 | 46 | buildmenu:function($, setting){ 47 | var smoothmenu=ddsmoothmenu 48 | var $mainmenu=$("#"+setting.mainmenuid+">ul") //reference main menu UL 49 | $mainmenu.parent().get(0).className=setting.classname || "ddsmoothmenu" 50 | var $headers=$mainmenu.find("ul").parent() 51 | $headers.hover( 52 | function(e){ 53 | $(this).children('a:eq(0)').addClass('selected') 54 | }, 55 | function(e){ 56 | $(this).children('a:eq(0)').removeClass('selected') 57 | } 58 | ) 59 | $headers.each(function(i){ //loop through each LI header 60 | var $curobj=$(this).css({zIndex: 100-i}) //reference current LI header 61 | var $subul=$(this).find('ul:eq(0)').css({display:'block'}) 62 | $subul.data('timers', {}) 63 | this._dimensions={w:this.offsetWidth, h:this.offsetHeight, subulw:$subul.outerWidth(), subulh:$subul.outerHeight()} 64 | this.istopheader=$curobj.parents("ul").length==1? true : false //is top level header? 65 | $subul.css({top:this.istopheader && setting.orientation!='v'? this._dimensions.h+"px" : 0}) 66 | $curobj.children("a:eq(0)").css(this.istopheader? {paddingRight: smoothmenu.arrowimages.down[2]} : {}) 67 | if (smoothmenu.shadow.enable){ 68 | this._shadowoffset={x:(this.istopheader?$subul.offset().left+smoothmenu.shadow.offsetx : this._dimensions.w), y:(this.istopheader? $subul.offset().top+smoothmenu.shadow.offsety : $curobj.position().top)} //store this shadow's offsets 69 | if (this.istopheader) 70 | $parentshadow=$(document.body) 71 | else{ 72 | var $parentLi=$curobj.parents("li:eq(0)") 73 | $parentshadow=$parentLi.get(0).$shadow 74 | } 75 | this.$shadow=$('
    ').prependTo($parentshadow).css({left:this._shadowoffset.x+'px', top:this._shadowoffset.y+'px'}) //insert shadow DIV and set it to parent node for the next shadow div 76 | } 77 | $curobj.hover( 78 | function(e){ 79 | var $targetul=$subul //reference UL to reveal 80 | var header=$curobj.get(0) //reference header LI as DOM object 81 | clearTimeout($targetul.data('timers').hidetimer) 82 | $targetul.data('timers').showtimer=setTimeout(function(){ 83 | header._offsets={left:$curobj.offset().left, top:$curobj.offset().top} 84 | var menuleft=header.istopheader && setting.orientation!='v'? 0 : header._dimensions.w 85 | menuleft=(header._offsets.left+menuleft+header._dimensions.subulw>$(window).width())? (header.istopheader && setting.orientation!='v'? -header._dimensions.subulw+header._dimensions.w : -header._dimensions.w) : menuleft //calculate this sub menu's offsets from its parent 86 | if ($targetul.queue().length<=1){ //if 1 or less queued animations 87 | $targetul.css({left:menuleft+"px", width:header._dimensions.subulw+'px'}).animate({height:'show',opacity:'show'}, ddsmoothmenu.transition.overtime) 88 | if (smoothmenu.shadow.enable){ 89 | var shadowleft=header.istopheader? $targetul.offset().left+ddsmoothmenu.shadow.offsetx : menuleft 90 | var shadowtop=header.istopheader?$targetul.offset().top+smoothmenu.shadow.offsety : header._shadowoffset.y 91 | if (!header.istopheader && ddsmoothmenu.detectwebkit){ //in WebKit browsers, restore shadow's opacity to full 92 | header.$shadow.css({opacity:1}) 93 | } 94 | header.$shadow.css({overflow:'', width:header._dimensions.subulw+'px', left:shadowleft+'px', top:shadowtop+'px'}).animate({height:header._dimensions.subulh+'px'}, ddsmoothmenu.transition.overtime) 95 | } 96 | } 97 | }, ddsmoothmenu.showhidedelay.showdelay) 98 | }, 99 | function(e){ 100 | var $targetul=$subul 101 | var header=$curobj.get(0) 102 | clearTimeout($targetul.data('timers').showtimer) 103 | $targetul.data('timers').hidetimer=setTimeout(function(){ 104 | $targetul.animate({height:'hide', opacity:'hide'}, ddsmoothmenu.transition.outtime) 105 | if (smoothmenu.shadow.enable){ 106 | if (ddsmoothmenu.detectwebkit){ //in WebKit browsers, set first child shadow's opacity to 0, as "overflow:hidden" doesn't work in them 107 | header.$shadow.children('div:eq(0)').css({opacity:0}) 108 | } 109 | header.$shadow.css({overflow:'hidden'}).animate({height:0}, ddsmoothmenu.transition.outtime) 110 | } 111 | }, ddsmoothmenu.showhidedelay.hidedelay) 112 | } 113 | ) //end hover 114 | }) //end $headers.each() 115 | $mainmenu.find("ul").css({display:'none', visibility:'visible'}) 116 | }, 117 | 118 | init:function(setting){ 119 | if (typeof setting.customtheme=="object" && setting.customtheme.length==2){ //override default menu colors (default/hover) with custom set? 120 | var mainmenuid='#'+setting.mainmenuid 121 | var mainselector=(setting.orientation=="v")? mainmenuid : mainmenuid+', '+mainmenuid 122 | document.write('') 126 | } 127 | this.shadow.enable=(document.all && !window.XMLHttpRequest)? false : this.shadow.enable //in IE6, always disable shadow 128 | jQuery(document).ready(function($){ //ajax menu? 129 | if (typeof setting.contentsource=="object"){ //if external ajax menu 130 | ddsmoothmenu.getajaxmenu($, setting) 131 | } 132 | else{ //else if markup menu 133 | ddsmoothmenu.buildmenu($, setting) 134 | } 135 | }) 136 | } 137 | 138 | } //end ddsmoothmenu variable 139 | 140 | -------------------------------------------------------------------------------- /js/jquery-1.6.4.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */ 2 | (function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"":"")+""),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cq(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cp(){cn=b}function co(){setTimeout(cp,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bv(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bl(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bd,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bk(a){f.nodeName(a,"input")?bj(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bj)}function bj(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bi(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bh(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bg(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i=0===c})}function U(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function M(a,b){return(a&&a!=="*"?a+".":"")+b.replace(y,"`").replace(z,"&")}function L(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;ic)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function J(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function D(){return!0}function C(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function K(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(K,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/ig,x=/^-ms-/,y=function(a,b){return(b+"").toUpperCase()},z=d.userAgent,A,B,C,D=Object.prototype.toString,E=Object.prototype.hasOwnProperty,F=Array.prototype.push,G=Array.prototype.slice,H=String.prototype.trim,I=Array.prototype.indexOf,J={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return G.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?F.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),B.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(G.apply(this,arguments),"slice",G.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:F,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;B.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!B){B=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",C,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",C),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&K()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):J[D.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!E.call(a,"constructor")&&!E.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||E.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(x,"ms-").replace(w,y)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c
    a",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},m&&f.extend(p,{position:"absolute",left:"-1000px",top:"-1000px"});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
    ",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
    t
    ",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i=f.expando,j=typeof c=="string",k=a.nodeType,l=k?f.cache:a,m=k?a[f.expando]:a[f.expando]&&f.expando;if((!m||e&&m&&l[m]&&!l[m][i])&&j&&d===b)return;m||(k?a[f.expando]=m=++f.uuid:m=f.expando),l[m]||(l[m]={},k||(l[m].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?l[m][i]=f.extend(l[m][i],c):l[m]=f.extend(l[m],c);g=l[m],e&&(g[i]||(g[i]={}),g=g[i]),d!==b&&(g[f.camelCase(c)]=d);if(c==="events"&&!g[c])return g[i]&&g[i].events;j?(h=g[c],h==null&&(h=g[f.camelCase(c)])):h=g;return h}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e=f.expando,g=a.nodeType,h=g?f.cache:a,i=g?a[f.expando]:f.expando;if(!h[i])return;if(b){d=c?h[i][e]:h[i];if(d){d[b]||(b=f.camelCase(b)),delete d[b];if(!l(d))return}}if(c){delete h[i][e];if(!l(h[i]))return}var j=h[i][e];f.support.deleteExpando||!h.setInterval?delete h[i]:h[i]=null,j?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=j):g&&(f.support.deleteExpando?delete a[f.expando]:a.removeAttribute?a.removeAttribute(f.expando):a[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=v:u&&(i=u)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.attr(a,b,""),a.removeAttribute(b),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(u&&f.nodeName(a,"button"))return u.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(u&&f.nodeName(a,"button"))return u.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==null?g:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabIndex=f.propHooks.tabIndex,v={get:function(a,c){var d;return f.prop(a,c)===!0||(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(u=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var w=/\.(.*)$/,x=/^(?:textarea|input|select)$/i,y=/\./g,z=/ /g,A=/[^\w\s.|`]/g,B=function(a){return a.replace(A,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=C;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=C);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),B).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},I=function(c){var d=c.target,e,g;if(!!x.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=H(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:I,beforedeactivate:I,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&I.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&I.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",H(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in G)f.event.add(this,c+".specialChange",G[c]);return x.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return x.test(this.nodeName)}},G=f.event.special.change.filters,G.focus=G.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

    ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
    ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(h=g;h0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=S.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(U(c[0])||U(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=R.call(arguments);N.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!T[a]?f.unique(e):e,(this.length>1||P.test(d))&&O.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/",""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]};be.optgroup=be.option,be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,f.support.htmlSerialize||(be._default=[1,"div
    ","
    "]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!be[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bh(a,d),e=bi(a),g=bi(d);for(h=0;e[h];++h)g[h]&&bh(e[h],g[h])}if(b){bg(a,d);if(c){e=bi(a),g=bi(d);for(h=0;e[h];++h)bg(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=be[l]||be._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bn.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bm,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bm.test(g)?g.replace(bm,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bv(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bw=function(a,c){var d,e,g;c=c.replace(bo,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bx=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bp.test(d)&&bq.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bv=bw||bx,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bz=/%20/g,bA=/\[\]$/,bB=/\r?\n/g,bC=/#.*$/,bD=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bE=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bF=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bG=/^(?:GET|HEAD)$/,bH=/^\/\//,bI=/\?/,bJ=/)<[^<]*)*<\/script>/gi,bK=/^(?:select|textarea)/i,bL=/\s+/,bM=/([?&])_=[^&]*/,bN=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bO=f.fn.load,bP={},bQ={},bR,bS,bT=["*/"]+["*"];try{bR=e.href}catch(bU){bR=c.createElement("a"),bR.href="",bR=bR.href}bS=bN.exec(bR.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bO)return bO.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
    ").append(c.replace(bJ,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bK.test(this.nodeName)||bE.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bB,"\r\n")}}):{name:b.name,value:c.replace(bB,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?bX(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),bX(a,b);return a},ajaxSettings:{url:bR,isLocal:bF.test(bS[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bT},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bV(bP),ajaxTransport:bV(bQ),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?bZ(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=b$(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bD.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bC,"").replace(bH,bS[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bL),d.crossDomain==null&&(r=bN.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bS[1]&&r[2]==bS[2]&&(r[3]||(r[1]==="http:"?80:443))==(bS[3]||(bS[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bW(bP,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bG.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bI.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bM,"$1_="+x);d.url=y+(y===d.url?(bI.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bT+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bW(bQ,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){s<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bY(g,a[g],c,e);return d.join("&").replace(bz,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd)cd[a](0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cq("show",3),a,b,c);for(var g=0,h=this.length;g=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b
    ";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=ct.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!ct.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cu(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cu(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNaN(j)?i:j}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window); -------------------------------------------------------------------------------- /js/jquery.corner.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jQuery corner plugin: simple corner rounding 3 | * Examples and documentation at: http://jquery.malsup.com/corner/ 4 | * version 2.12 (23-MAY-2011) 5 | * Requires jQuery v1.3.2 or later 6 | * Dual licensed under the MIT and GPL licenses: 7 | * http://www.opensource.org/licenses/mit-license.php 8 | * http://www.gnu.org/licenses/gpl.html 9 | * Authors: Dave Methvin and Mike Alsup 10 | */ 11 | 12 | /** 13 | * corner() takes a single string argument: $('#myDiv').corner("effect corners width") 14 | * 15 | * effect: name of the effect to apply, such as round, bevel, notch, bite, etc (default is round). 16 | * corners: one or more of: top, bottom, tr, tl, br, or bl. (default is all corners) 17 | * width: width of the effect; in the case of rounded corners this is the radius. 18 | * specify this value using the px suffix such as 10px (yes, it must be pixels). 19 | */ 20 | ;(function($) { 21 | 22 | var style = document.createElement('div').style, 23 | moz = style['MozBorderRadius'] !== undefined, 24 | webkit = style['WebkitBorderRadius'] !== undefined, 25 | radius = style['borderRadius'] !== undefined || style['BorderRadius'] !== undefined, 26 | mode = document.documentMode || 0, 27 | noBottomFold = $.browser.msie && (($.browser.version < 8 && !mode) || mode < 8), 28 | 29 | expr = $.browser.msie && (function() { 30 | var div = document.createElement('div'); 31 | try { div.style.setExpression('width','0+0'); div.style.removeExpression('width'); } 32 | catch(e) { return false; } 33 | return true; 34 | })(); 35 | 36 | $.support = $.support || {}; 37 | $.support.borderRadius = moz || webkit || radius; // so you can do: if (!$.support.borderRadius) $('#myDiv').corner(); 38 | 39 | function sz(el, p) { 40 | return parseInt($.css(el,p))||0; 41 | }; 42 | function hex2(s) { 43 | s = parseInt(s).toString(16); 44 | return ( s.length < 2 ) ? '0'+s : s; 45 | }; 46 | function gpc(node) { 47 | while(node) { 48 | var v = $.css(node,'backgroundColor'), rgb; 49 | if (v && v != 'transparent' && v != 'rgba(0, 0, 0, 0)') { 50 | if (v.indexOf('rgb') >= 0) { 51 | rgb = v.match(/\d+/g); 52 | return '#'+ hex2(rgb[0]) + hex2(rgb[1]) + hex2(rgb[2]); 53 | } 54 | return v; 55 | } 56 | if (node.nodeName.toLowerCase() == 'html') 57 | break; 58 | node = node.parentNode; // keep walking if transparent 59 | } 60 | return '#ffffff'; 61 | }; 62 | 63 | function getWidth(fx, i, width) { 64 | switch(fx) { 65 | case 'round': return Math.round(width*(1-Math.cos(Math.asin(i/width)))); 66 | case 'cool': return Math.round(width*(1+Math.cos(Math.asin(i/width)))); 67 | case 'sharp': return width-i; 68 | case 'bite': return Math.round(width*(Math.cos(Math.asin((width-i-1)/width)))); 69 | case 'slide': return Math.round(width*(Math.atan2(i,width/i))); 70 | case 'jut': return Math.round(width*(Math.atan2(width,(width-i-1)))); 71 | case 'curl': return Math.round(width*(Math.atan(i))); 72 | case 'tear': return Math.round(width*(Math.cos(i))); 73 | case 'wicked': return Math.round(width*(Math.tan(i))); 74 | case 'long': return Math.round(width*(Math.sqrt(i))); 75 | case 'sculpt': return Math.round(width*(Math.log((width-i-1),width))); 76 | case 'dogfold': 77 | case 'dog': return (i&1) ? (i+1) : width; 78 | case 'dog2': return (i&2) ? (i+1) : width; 79 | case 'dog3': return (i&3) ? (i+1) : width; 80 | case 'fray': return (i%2)*width; 81 | case 'notch': return width; 82 | case 'bevelfold': 83 | case 'bevel': return i+1; 84 | case 'steep': return i/2 + 1; 85 | case 'invsteep':return (width-i)/2+1; 86 | } 87 | }; 88 | 89 | $.fn.corner = function(options) { 90 | // in 1.3+ we can fix mistakes with the ready state 91 | if (this.length == 0) { 92 | if (!$.isReady && this.selector) { 93 | var s = this.selector, c = this.context; 94 | $(function() { 95 | $(s,c).corner(options); 96 | }); 97 | } 98 | return this; 99 | } 100 | 101 | return this.each(function(index){ 102 | var $this = $(this), 103 | // meta values override options 104 | o = [$this.attr($.fn.corner.defaults.metaAttr) || '', options || ''].join(' ').toLowerCase(), 105 | keep = /keep/.test(o), // keep borders? 106 | cc = ((o.match(/cc:(#[0-9a-f]+)/)||[])[1]), // corner color 107 | sc = ((o.match(/sc:(#[0-9a-f]+)/)||[])[1]), // strip color 108 | width = parseInt((o.match(/(\d+)px/)||[])[1]) || 10, // corner width 109 | re = /round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog|invsteep|steep/, 110 | fx = ((o.match(re)||['round'])[0]), 111 | fold = /dogfold|bevelfold/.test(o), 112 | edges = { T:0, B:1 }, 113 | opts = { 114 | TL: /top|tl|left/.test(o), TR: /top|tr|right/.test(o), 115 | BL: /bottom|bl|left/.test(o), BR: /bottom|br|right/.test(o) 116 | }, 117 | // vars used in func later 118 | strip, pad, cssHeight, j, bot, d, ds, bw, i, w, e, c, common, $horz; 119 | 120 | if ( !opts.TL && !opts.TR && !opts.BL && !opts.BR ) 121 | opts = { TL:1, TR:1, BL:1, BR:1 }; 122 | 123 | // support native rounding 124 | if ($.fn.corner.defaults.useNative && fx == 'round' && (radius || moz || webkit) && !cc && !sc) { 125 | if (opts.TL) 126 | $this.css(radius ? 'border-top-left-radius' : moz ? '-moz-border-radius-topleft' : '-webkit-border-top-left-radius', width + 'px'); 127 | if (opts.TR) 128 | $this.css(radius ? 'border-top-right-radius' : moz ? '-moz-border-radius-topright' : '-webkit-border-top-right-radius', width + 'px'); 129 | if (opts.BL) 130 | $this.css(radius ? 'border-bottom-left-radius' : moz ? '-moz-border-radius-bottomleft' : '-webkit-border-bottom-left-radius', width + 'px'); 131 | if (opts.BR) 132 | $this.css(radius ? 'border-bottom-right-radius' : moz ? '-moz-border-radius-bottomright' : '-webkit-border-bottom-right-radius', width + 'px'); 133 | return; 134 | } 135 | 136 | strip = document.createElement('div'); 137 | $(strip).css({ 138 | overflow: 'hidden', 139 | height: '1px', 140 | minHeight: '1px', 141 | fontSize: '1px', 142 | backgroundColor: sc || 'transparent', 143 | borderStyle: 'solid' 144 | }); 145 | 146 | pad = { 147 | T: parseInt($.css(this,'paddingTop'))||0, R: parseInt($.css(this,'paddingRight'))||0, 148 | B: parseInt($.css(this,'paddingBottom'))||0, L: parseInt($.css(this,'paddingLeft'))||0 149 | }; 150 | 151 | if (typeof this.style.zoom != undefined) this.style.zoom = 1; // force 'hasLayout' in IE 152 | if (!keep) this.style.border = 'none'; 153 | strip.style.borderColor = cc || gpc(this.parentNode); 154 | cssHeight = $(this).outerHeight(); 155 | 156 | for (j in edges) { 157 | bot = edges[j]; 158 | // only add stips if needed 159 | if ((bot && (opts.BL || opts.BR)) || (!bot && (opts.TL || opts.TR))) { 160 | strip.style.borderStyle = 'none '+(opts[j+'R']?'solid':'none')+' none '+(opts[j+'L']?'solid':'none'); 161 | d = document.createElement('div'); 162 | $(d).addClass('jquery-corner'); 163 | ds = d.style; 164 | 165 | bot ? this.appendChild(d) : this.insertBefore(d, this.firstChild); 166 | 167 | if (bot && cssHeight != 'auto') { 168 | if ($.css(this,'position') == 'static') 169 | this.style.position = 'relative'; 170 | ds.position = 'absolute'; 171 | ds.bottom = ds.left = ds.padding = ds.margin = '0'; 172 | if (expr) 173 | ds.setExpression('width', 'this.parentNode.offsetWidth'); 174 | else 175 | ds.width = '100%'; 176 | } 177 | else if (!bot && $.browser.msie) { 178 | if ($.css(this,'position') == 'static') 179 | this.style.position = 'relative'; 180 | ds.position = 'absolute'; 181 | ds.top = ds.left = ds.right = ds.padding = ds.margin = '0'; 182 | 183 | // fix ie6 problem when blocked element has a border width 184 | if (expr) { 185 | bw = sz(this,'borderLeftWidth') + sz(this,'borderRightWidth'); 186 | ds.setExpression('width', 'this.parentNode.offsetWidth - '+bw+'+ "px"'); 187 | } 188 | else 189 | ds.width = '100%'; 190 | } 191 | else { 192 | ds.position = 'relative'; 193 | ds.margin = !bot ? '-'+pad.T+'px -'+pad.R+'px '+(pad.T-width)+'px -'+pad.L+'px' : 194 | (pad.B-width)+'px -'+pad.R+'px -'+pad.B+'px -'+pad.L+'px'; 195 | } 196 | 197 | for (i=0; i < width; i++) { 198 | w = Math.max(0,getWidth(fx,i, width)); 199 | e = strip.cloneNode(false); 200 | e.style.borderWidth = '0 '+(opts[j+'R']?w:0)+'px 0 '+(opts[j+'L']?w:0)+'px'; 201 | bot ? d.appendChild(e) : d.insertBefore(e, d.firstChild); 202 | } 203 | 204 | if (fold && $.support.boxModel) { 205 | if (bot && noBottomFold) continue; 206 | for (c in opts) { 207 | if (!opts[c]) continue; 208 | if (bot && (c == 'TL' || c == 'TR')) continue; 209 | if (!bot && (c == 'BL' || c == 'BR')) continue; 210 | 211 | common = { position: 'absolute', border: 'none', margin: 0, padding: 0, overflow: 'hidden', backgroundColor: strip.style.borderColor }; 212 | $horz = $('
    ').css(common).css({ width: width + 'px', height: '1px' }); 213 | switch(c) { 214 | case 'TL': $horz.css({ bottom: 0, left: 0 }); break; 215 | case 'TR': $horz.css({ bottom: 0, right: 0 }); break; 216 | case 'BL': $horz.css({ top: 0, left: 0 }); break; 217 | case 'BR': $horz.css({ top: 0, right: 0 }); break; 218 | } 219 | d.appendChild($horz[0]); 220 | 221 | var $vert = $('
    ').css(common).css({ top: 0, bottom: 0, width: '1px', height: width + 'px' }); 222 | switch(c) { 223 | case 'TL': $vert.css({ left: width }); break; 224 | case 'TR': $vert.css({ right: width }); break; 225 | case 'BL': $vert.css({ left: width }); break; 226 | case 'BR': $vert.css({ right: width }); break; 227 | } 228 | d.appendChild($vert[0]); 229 | } 230 | } 231 | } 232 | } 233 | }); 234 | }; 235 | 236 | $.fn.uncorner = function() { 237 | if (radius || moz || webkit) 238 | this.css(radius ? 'border-radius' : moz ? '-moz-border-radius' : '-webkit-border-radius', 0); 239 | $('div.jquery-corner', this).remove(); 240 | return this; 241 | }; 242 | 243 | // expose options 244 | $.fn.corner.defaults = { 245 | useNative: true, // true if plugin should attempt to use native browser support for border radius rounding 246 | metaAttr: 'data-corner' // name of meta attribute to use for options 247 | }; 248 | 249 | })(jQuery); 250 | 251 | 252 | 253 | /*-----------------------------------------------------------------------------------*/ 254 | /* CORNER 255 | /*-----------------------------------------------------------------------------------*/ 256 | 257 | $(function(){ 258 | $('.carousel ul li img, #prev, #next, .jquery-slider-slide img, .col4 img, .items img, ul.popular-posts li img, .sidebox ul.popular-posts li img, .post img, a.button, .forms fieldset .btn-submit, #filtering-nav li a, .page-navi ul li a, .map iframe, .text-input, .text-area, .form-container .response, .overlay, ul#button_quotes button, ul.tabs li a, .tab_container, h2.trigger, .togglebox, pre, .download-box, .warning-box, .info-box, .note-box, .round, .jta-tweet-list-controls-button, .b-slider img, .e-showcase-navigation ul li, ul.works li img').corner("3px"); 259 | $('.date').corner("75px"); 260 | }); 261 | -------------------------------------------------------------------------------- /js/scripts.js: -------------------------------------------------------------------------------- 1 | /*-----------------------------------------------------------------------------------*/ 2 | /* TOGGLE 3 | /*-----------------------------------------------------------------------------------*/ 4 | $(document).ready(function(){ 5 | //Hide the tooglebox when page load 6 | $(".togglebox").hide(); 7 | //slide up and down when click over heading 2 8 | $("h2").click(function(){ 9 | // slide toggle effect set to slow you can set it to fast too. 10 | $(this).toggleClass("active").next(".togglebox").slideToggle("slow"); 11 | return true; 12 | }); 13 | }); 14 | 15 | /*-----------------------------------------------------------------------------------*/ 16 | /* TABS 17 | /*-----------------------------------------------------------------------------------*/ 18 | $(document).ready(function() { 19 | //Default Action 20 | $(".tab_content").hide(); //Hide all content 21 | $("ul.tabs li:first").addClass("active").show(); //Activate first tab 22 | $(".tab_content:first").show(); //Show first tab content 23 | 24 | //On Click Event 25 | $("ul.tabs li").click(function() { 26 | $("ul.tabs li").removeClass("active"); //Remove any "active" class 27 | $(this).addClass("active"); //Add "active" class to selected tab 28 | $(".tab_content").hide(); //Hide all tab content 29 | var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content 30 | $(activeTab).fadeIn(); //Fade in the active content 31 | return false; 32 | }); 33 | 34 | }); 35 | 36 | /*-----------------------------------------------------------------------------------*/ 37 | /* MENU 38 | /*-----------------------------------------------------------------------------------*/ 39 | ddsmoothmenu.init({ 40 | mainmenuid: "menu", 41 | orientation: 'v', 42 | classname: 'menu-v', 43 | contentsource: "markup" 44 | }) 45 | 46 | /*-----------------------------------------------------------------------------------*/ 47 | /* IMAGE HOVER 48 | /*-----------------------------------------------------------------------------------*/ 49 | $(function() { 50 | $('.post a img, ul.works li a img, ul.popular-posts a img').css("opacity","1.0"); 51 | $('.post a img, ul.works li a img, ul.popular-posts a img').hover(function () { 52 | $(this).stop().animate({ opacity: 0.85 }, "fast"); }, 53 | function () { 54 | $(this).stop().animate({ opacity: 1.0 }, "fast"); 55 | }); 56 | }); 57 | 58 | /*-----------------------------------------------------------------------------------*/ 59 | /* SIDEBAR HEIGHT 60 | /*-----------------------------------------------------------------------------------*/ 61 | jQuery(document).ready(function($){ 62 | var h = $(document).height(); 63 | $('#sidebar').css({height: h+'px'}); 64 | }); 65 | 66 | /*-----------------------------------------------------------------------------------*/ 67 | /* PRETTYPHOTO 68 | /*-----------------------------------------------------------------------------------*/ 69 | 70 | $(document).ready(function(){ 71 | $("a[rel^='prettyPhoto']").prettyPhoto({autoplay_slideshow: false, overlay_gallery: false, social_tools:false, deeplinking: false, theme:'pp_default', slideshow:5000}); 72 | }); 73 | 74 | /*-----------------------------------------------------------------------------------*/ 75 | /* PORTFOLIO 76 | /*-----------------------------------------------------------------------------------*/ 77 | 78 | $(document).ready(function() { 79 | 80 | var 81 | speed = 1000, // animation speed 82 | $wall = $('#portfolio .items'), 83 | 84 | masonryOptions = { // initial masonry options 85 | 86 | itemSelector: '.box:not(.invis)', 87 | animate: true, 88 | animationOptions: { 89 | duration: speed, 90 | queue: false 91 | } 92 | }; 93 | 94 | $wall.imagesLoaded(function(){ 95 | 96 | $wall.masonry(masonryOptions); 97 | 98 | // Create array of filters from link href 99 | var arrFilter = []; 100 | $('#filtering-nav a').each(function(){ 101 | fhash = $(this).attr('href').replace('#',''); 102 | if(fhash != 'all'){ 103 | arrFilter.push(fhash); 104 | } 105 | }); 106 | 107 | // Get the parameter value after the # symbol 108 | var url=document.URL.split('#')[1]; 109 | if(url == undefined){ 110 | url = 'all'; 111 | } 112 | $('#filtering-nav a.'+url).parent().addClass('active'); 113 | 114 | if(jQuery.inArray(url, arrFilter) > '-1'){ 115 | // set masonry options animate to false 116 | masonryOptions.animate = false; 117 | // hide boxes that don't match the filter class 118 | $wall.children().not('.'+url).toggleClass('invis').hide(); 119 | } 120 | // imageSetCss($(".box")); 121 | // run masonry again 122 | $wall.masonry(masonryOptions); 123 | // imageFadeIn($(".box")); 124 | $wall.animate({opacity: 1},1000); 125 | 126 | }); 127 | 128 | $('#filtering-nav a').click(function(e){ 129 | var color = $(this).attr('class'); 130 | filterClass = '.' + color; 131 | $('#filtering-nav li').removeClass('active'); 132 | $(this).parent().addClass('active'); 133 | 134 | if(filterClass=='.all') { 135 | // show all hidden boxes 136 | $wall.children('.invis').toggleClass('invis').fadeIn(speed); 137 | } else { 138 | // hide visible boxes 139 | $wall.children().not(filterClass).not('.invis').toggleClass('invis').fadeOut(speed); 140 | // show hidden boxes 141 | $wall.children(filterClass+'.invis').toggleClass('invis').fadeIn(speed); 142 | } 143 | $wall.masonry({animate: true}); 144 | // set hash in URL 145 | location.hash = color; 146 | e.preventDefault(); 147 | }); 148 | }); 149 | $.fn.imagesLoaded = function(a) { 150 | var 151 | b=this.find("img"), 152 | c=[], 153 | d=this, 154 | e=b.length; 155 | 156 | if(!b.length){ 157 | a.call(this); 158 | return this 159 | } 160 | b.one("load error",function(){ 161 | --e===0&&(e=b.length,b.one("load error",function(){ 162 | --e===0&&a.call(d)}).each(function(){ 163 | this.src=c.shift() 164 | }) 165 | )} 166 | ).each(function(){ 167 | c.push(this.src),this.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==" 168 | }); 169 | return this 170 | }; 171 | 172 | /*-----------------------------------------------------------------------------------*/ 173 | /* HOVER 174 | /*-----------------------------------------------------------------------------------*/ 175 | 176 | $(document).ready(function() { 177 | $('.items .box .image, .items .box .left-side, .carousel ul li').mouseenter(function(e) { 178 | 179 | $(this).children('a').children('span').fadeIn(200); 180 | }).mouseleave(function(e) { 181 | 182 | $(this).children('a').children('span').fadeOut(200); 183 | }); 184 | }); 185 | 186 | /*-----------------------------------------------------------------------------------*/ 187 | /* SLIDER 188 | /*-----------------------------------------------------------------------------------*/ 189 | 190 | $(window).load(function() { 191 | $('.flexslider').flexslider({ 192 | slideshowSpeed: 4000 193 | }); 194 | }); 195 | -------------------------------------------------------------------------------- /page.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 | 5 |

    6 |
    7 |
    8 |
    9 | 10 | 11 | 15 |
    16 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jevantang/JieStyle-One/efb3cb03dbce47f58d9bec817ac7d935ae3535dd/screenshot.png -------------------------------------------------------------------------------- /search.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 |

    5 |

    6 |
    7 |
    8 |

    :

    9 |
    10 | 11 |
    12 |
    13 |
    14 |
    15 |
    16 |
    17 |
    18 |

    19 |
    󰁦
    20 |
    󰁠
    21 |
    22 |
    23 |
    24 |
    25 | 26 | 27 |
    28 |
    29 |
    30 |

    分类目录

    31 |
      32 | 33 |
    34 |
    35 |
    36 |

    热门文章

    37 |
      38 | 39 |
    40 |
    41 |
    42 |

    随机文章

    43 | 50 |
    51 |
    52 |

    标签云

    53 |
    54 | 55 |
    56 |
    57 |
    58 |
    59 |
    60 | 64 |
    65 | -------------------------------------------------------------------------------- /sidebar.php: -------------------------------------------------------------------------------- 1 | 47 | 53 | -------------------------------------------------------------------------------- /single.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 |

    5 |

    6 |
    7 | 8 |
    9 |
    10 |
    11 |
    12 |
    13 |
    14 |
    15 |

    16 |
    作者:
    17 |
    分类:
    18 |
    发布时间:
    19 |
    ', ''); ?>
    20 |
    21 |
    22 |
    23 |
    24 | 25 |
    26 |
    󰁠
    27 |
    28 | 29 |
    30 |
    31 |
    32 |

    本文出自 ,转载时请注明出处及相应链接。

    33 |

    本文永久链接:

    34 |
    35 | 36 |
    37 |
    38 | 39 | 40 |
    41 |
    42 | 43 |
    44 |
    45 | 49 |
    50 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: JieStyle One 3 | Theme URI: https://tangjie.me/jiestyle 4 | Version: 1.3 5 | Description: 响应式Web设计,自适应电脑、平板电脑、移动设备。 6 | Author: 唐杰 7 | Author URI: https://tangjie.me 8 | License: GNU General Public License v3.0 9 | Tags: gray,silver,two-columns,right-sidebar,fixed-width,flexible-width,custom-menu,featured-images,theme-options 10 | */ 11 | body{margin:0;background-color:#fcfcfc;font-family:Tahoma,'Microsoft Yahei','Simsun';font-size:14px;color:#333;height:100%}ul,li,img,p,ol,h1,h2,h3,h4,h5,h6{margin:0;padding:0;list-style:none;border:0}a{color:#688dad;text-decoration:none}a:hover{text-decoration:underline}.int{display:none}@font-face{font-family:'iconfont';src:url('font/iconfont.eot');src:url('font/iconfont.eot?#iefix') format('embedded-opentype'),url('font/iconfont.woff') format('woff'),url('font/iconfont.ttf') format('truetype'),url('font/iconfont.svg#uxiconfont') format('svg')}.iconfont{font-family:"iconfont"!important;font-size:16px;font-style:normal;padding:0 5px;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px;-moz-osx-font-smoothing:grayscale}#wrapper{width:1000px;margin:0 auto;overflow:hidden}#content{width:728px;float:right;padding:0 0 20px 0}#sidebar{width:238px;background:#596d7f url(images/noize.png) repeat 100% 0;-webkit-box-shadow:inset 0 0 0 1px rgba(255,255,255,0.15);-moz-box-shadow:inset 0 0 0 1px rgba(255,255,255,0.15);box-shadow:inset 0 0 0 1px rgba(255,255,255,0.15);border-left:1px solid rgba(0,0,0,0.50);border-right:1px solid rgba(0,0,0,0.50);float:left;position:fixed;margin-top:-1px;z-index:100;height:100%}#logo{text-align:left;padding:30px 0 0 30px}#logo a{border:0}#logo img{display:inline}#menu{float:left;text-align:left;font-family:Gotham,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:17px;margin-top:40px;margin-bottom:20px;position:relative;z-index:100;padding:0 0 0 22px;text-shadow:0 1px 0 rgba(0,0,0,0.5)}.menu-v ul{margin:0;padding:0;list-style-type:none;width:200px;background:transparent url(images/menu-line.png) no-repeat center bottom}.menu-v ul li{position:relative;padding-right:5px;background:transparent url(images/menu-line.png) no-repeat center top;padding:0}.menu-v ul li a{display:block;color:white;text-decoration:none;padding:12px 0 10px 20px;padding-right:17px;background:transparent;color:#f0f0f0;text-decoration:none;border:0}.menu-v ul li a.active,.menu-v ul li a.selected,.menu-v ul li a:hover{text-decoration:none;background:transparent url(images/menu-hover.png) repeat-y left top;color:#fff}.menu-v ul li ul{position:absolute;width:130px;top:0;visibility:hidden;text-align:left;padding:0 15px;margin-left:0;background:#596d7f url(images/noize.png) repeat top center;-webkit-box-shadow:inset 0 0 0 1px rgba(255,255,255,0.10);-moz-box-shadow:inset 0 0 0 1px rgba(255,255,255,0.10);box-shadow:inset 0 0 0 1px rgba(255,255,255,0.10);border:1px solid rgba(0,0,0,0.30);font-size:14px;line-height:20px}.menu-v ul li ul li{background:transparent url(images/dropdown-line.png) repeat-x left top}.menu-v ul li ul li:first-child{background:0;padding-bottom:0}.menu-v ul li ul li a{padding:12px 0}.menu-v ul li ul li a.active,.menu-v ul li ul li a.selected,.menu-v ul li ul li a:hover{background:0}.sidebox{width:200px;margin:0 auto 50px auto}.weixin{text-align:center}.searchform input{background:transparent url(images/search.png) no-repeat top right;width:180px;padding:4px 10px 6px;height:21px;border:0;font-size:10px;font-style:italic;color:#f0f0f0;float:right;outline:0}.primary{width:500px;float:left;padding-right:25px;background:transparent url(images/line-v.png) repeat-y right}.secondary{width:180px;float:right}.uptop{margin:20px 0;font-size:16px}.uptop span{color:#F00;font-weight:300}.post{position:relative;margin-bottom:30px;padding-bottom:10px;background:transparent url(images/line.png) repeat-x bottom;overflow:hidden}.info{margin:20px 0;overflow:hidden}.date{background-color:#eee;height:50px;width:50px;float:left;padding-left:1px;margin-right:15px;text-align:center;color:#6d6d6d;font-style:italic;border-top-left-radius:75px;border-top-right-radius:75px;border-bottom-left-radius:75px;border-bottom-right-radius:75px}.date .day{font-size:16px;padding-top:6px;margin-left:-2px}.date .month{font-size:12px;text-transform:uppercase;margin-top:-1px}.meta{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.meta .title{margin:0 0 6px 0;font-size:18px;line-height:22px}.meta .title a{color:#333}.meta .title a:hover{color:#ab4d63;text-decoration:none}.meta i{color:#999;padding:0;font-size:12px}.meta .comments,.meta .the{float:left;font-style:italic;font-size:10px;margin-right:20px}.meta .tags{font-size:10px;font-style:italic}.meta .comments a,.meta .tags a{color:#999}.post p{line-height:20px;margin-bottom:20px;font-size:14px}.post .more{font-style:italic;font-size:13px;margin-left:20px}.secondary .widget,.secondary .comments{margin:0 auto 30px auto;width:180px}.secondary .widget h3,.secondary .comments h3{color:#4a4a4a;margin:0 0 10px 0;padding:0;font-size:16px;text-shadow:none}.secondary .widget ul li{background:transparent url(images/bullet.png) left 8px no-repeat;padding-left:15px;line-height:24px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis} 12 | .secondary .comments ul li{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-bottom:15px}.secondary .comments ul li img{margin-right:5px}.secondary .comments ul li a{color:#999;font-size:13px}.pagination span,.pagination a{width:22px;height:22px;text-align:center;line-height:24px;margin:0 2px 0 2px;display:inline-block;text-decoration:none;border:1px solid #CCC;border-radius:5px}.pagination .current{height:22px;width:22px;color:#ab4d63;border:1px solid #CCC;font-weight:bold;background:#f0f0f0}.pagination a:hover{color:#333;border:1px solid #888;text-decoration:none;background:#f0f0f0}.pagination .page_previous,.pagination .page_next{width:70px;height:22px;text-align:center}.pagination .fir_las{width:36px;height:22px;text-align:center}.name,.name a{font-size:24px;margin:20px 0 10px 0;padding:0;font-weight:normal;color:#333}.description{font-size:14px;margin:0 0 10px 0;padding:0;font-weight:normal}.text{line-height:26px;font-size:14px;color:#333}.text h3{font-size:16px;color:#60F;margin-bottom:10px}.text h4{font-size:14px;color:#090;text-indent:26px;margin-bottom:5px}.text h5{font-size:14px;border:1px dashed #DDD;background:#f1f1f1;padding:4px 10px;margin:15px 0}.text p{margin-bottom:10px;text-indent:26px}.text img,.text iframe{max-width:100%}.text blockquote{border:1px dashed #ddd;background:#f1f1f1;padding:10px;margin:10px 0}.text blockquote p{text-indent:0;margin-bottom:0}.article .tags,.article .tags i{font-size:12px}.text_add{margin:20px 0 0 0;overflow:hidden}.text_add .copy{float:left}.text_add .share{float:right}.post_link{font-size:12px;overflow:hidden;color:#999;margin:15px 0}.post_link a{font-size:12px;color:#999}.post_link .prev{float:left}.post_link .next{float:right}.dashang{text-align:center;padding:20px;border:1px solid #CCC;background:#FFF;margin-top:15px}.dashang .btn_ds{display:inline-block;width:82px;height:82px;background:url("images/dashang.png") no-repeat;_background:url("images/dashang.gif") no-repeat}.dashang a:hover{background-position:0 -82px}.dashang .ds_txt{display:block;color:#9d9d9d;font:14px/2 "Microsoft Yahei"}#comments{margin-bottom:20px;padding:20px 30px 10px 30px;background-color:#FFF;box-shadow:0 1px 2px 0 #CCC;overflow:hidden}#comments h3{border-bottom:1px dashed #CCC;padding:0 0 10px 20px;margin:0 -30px}.comment_list{margin-bottom:30px}.comment_list li{border-bottom:1px dashed #e5e5e5;margin:0;padding:10px 0}.avatar{float:left;width:40px;margin-top:2px}.comment{overflow:hidden;padding-left:10px}.comment_meta{overflow:hidden}.comment_meta cite,.comment_meta cite a{font-style:normal;color:#000}.comment_meta cite a:hover{color:#F60}.comment_meta .time{font-size:11px;color:#999;padding-left:5px}.comment_meta .reply,.comment_meta .edit_link{float:right;padding-right:10px;margin-top:-2px}.comment_meta .reply a,.comment_meta .edit_link a{font-size:12px;color:#666}.comment_meta .reply a:hover,.comment_meta .edit_link a:hover{color:#F60}.comment p{font-size:13px;color:#666;padding-right:10px;padding-top:3px}#comments .children{background-color:#f9f9fa;margin:10px 0 0 46px}#comments .children li{padding-left:10px}.comment_list ol ol{border:1px dashed #e5e5e5;border-bottom:0}.comment_nav{overflow:hidden;margin-bottom:30px}#respond{margin:20px}#respond h3 small a{margin-left:15px;font-size:12px}#respond .required{color:#F00}#respond p{clear:both;margin-top:5px;overflow:hidden}#respond label{padding-left:5px}#respond input,#respond textarea{float:left;font-size:14px}#respond .form-allowed-tags,#respond .comment-form-comment label{display:none}.errors_404{width:700px;height:440px;position:relative;background:url(images/404.png) no-repeat}.errors_404 .to_home{position:absolute;width:80px;height:28px;top:340px;left:310px}.errors_404 .to_back{position:absolute;width:100px;height:28px;top:340px;left:410px}.line{background:transparent url(images/line.png) repeat-x;height:2px;padding:20px 0 0 0;line-break:0}.clear{clear:both}.category{margin:10px 0;font-size:18px;color:#ab4d63}.preface{margin-bottom:20px}.ads_article{margin:20px 0}.ads_bottom{margin-top:30px}#footer{overflow:hidden;padding:10px 0;margin-top:20px;background:transparent url(images/footer-line.png) repeat-x top center}#footer p{font-size:12px;line-height:24px}#footer a{font-family:Tahoma,'Microsoft Yahei','Simsun';color:#333}@media screen and (max-width:1024px){#wrapper{width:100%}#sidebar{width:150px}#logo{padding:20px 0 0 5px}.menu-v ul{width:auto}#menu{padding:0 0 0 15px}.sidebox{width:auto;margin:0}.searchform input{width:auto}#content{float:none;margin-left:200px}}@media screen and (max-width:768px){.preface,.secondary{display:none}#content{width:70%}.primary{background:0}}@media screen and (max-width:650px){#wrapper{width:90%}.preface,.secondary,.tags,.share,.sidebox{display:none}.bar{display:block;position:fixed;z-index:1000;bottom:30px}.bar a{text-decoration:none;font-size:16px}.bar a div{background:#FFF;padding:0 3px 2px 0;border:1px solid #CCC} 13 | #sidebar{left:0;width:106px}#logo{padding:10px 0 0 10px}#logo img{max-width:80px}#menu{padding-left:6px;margin-top:20px}#menu a{font-size:14px}.menu-v ul{width:inherit}.menu-v ul li ul{padding:0 10px;width:80px}.menu-v ul li ul li a{padding:6px 0}#content{width:100%;float:none;margin:0 auto}.primary{width:100%;float:none;padding-right:0;background:0}.date{margin-right:8px}.post_link .next{margin-top:10px}.meta{overflow:auto;white-space:inherit;text-overflow:inherit}.post{margin-bottom:10px}#comments{padding:10px}#respond label{padding:0}.comment-notes{margin-bottom:20px}#respond input,#respond textarea{float:none;width:90%}} --------------------------------------------------------------------------------