Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [js] moglby ktos mi skompresowac kod zeby dzialal po kompresji?
AndyPSV
post
Post #1





Grupa: Zarejestrowani
Postów: 393
Pomógł: 5
Dołączył: 6.02.2003
Skąd: The.Luciferian.Doctrine.p
df

Ostrzeżenie: (30%)
XX---


  1. <script type="text/javascript" language="javascript">
  2. $(document).ready(function(){
  3. // Reset Font Size
  4. var originalFontSize = $('.pg').css('font-size');
  5. $(".resetFont").click(function(){
  6. $('.pg').css('font-size', originalFontSize);
  7. });
  8. // Increase Font Size
  9. $(".increaseFont").click(function(){
  10. var currentFontSize = $('.pg').css('font-size');
  11. var currentFontSizeNum = parseFloat(currentFontSize, 10);
  12. var newFontSize = currentFontSizeNum*1.1;
  13. $('.pg').css('font-size', newFontSize);
  14. return false;
  15. });
  16. // Decrease Font Size
  17. $(".decreaseFont").click(function(){
  18. var currentFontSize = $('.pg').css('font-size');
  19. var currentFontSizeNum = parseFloat(currentFontSize, 10);
  20. var newFontSize = currentFontSizeNum*0.9;
  21. $('.pg').css('font-size', newFontSize);
  22. return false;
  23. });
  24. });
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
zzeus
post
Post #2





Grupa: Zarejestrowani
Postów: 441
Pomógł: 71
Dołączył: 3.09.2007
Skąd: wrocław

Ostrzeżenie: (0%)
-----


http://closure-compiler.appspot.com/home - korzystanie z tego nie jest aż tak trudne żebyś sobie sam nie poradził
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.09.2025 - 14:42