Sexta-feira, 27 de Fevereiro de 2009

SAPO.Utility.*

Lista de classes utilitárias da LibSAPO.js

 

SAPO.Utility.

  • Array - Sample
    • (bool) inArray(<string>, <array>)
    • (bool|int|array) keyValue(<string>, <array>)
  • Cookie - Sample
    • (object) get()
    • (void) set(<string>, <string>, <int>, <string>, <string> <bool>)
    • (void) remove(<string>)
  • Crypto - Sample
    • (string) md5(<string>)
    • (string) sha1(<string>)
    • (string) sha256(<string>)
  • CSS - Sample
    • (void) set(<object>)
  • Dumper - Sample
    • (void) printDump(<object>, <string>)
    • (string) returnDump(<object>)
    • (void) alertDump(<object>)
    • (void) windowDump(<object>)
  • Pagination - Sample
    • (object) new SAPO.Utility.Pagination()
  • String - Sample
    • (string) ucFirst(<string>)
    • (string) trim(<string>)
    • (string) stripTags(<string>)
    • (string) htmlEntitiesEncode(<string>)
    • (string) htmlEntitiesDecode(<string>)
    • (string) utf8Encode(<string>)
    • (string) utf8Decode(<string>)
    • (string) shortString(<string>, <int>)
    • (string) removeAccentedChars(<string>)
  • Templating - Sample
    • (void) (new SAPO.Utility.Templating()).gen(<string|element>, <object>)
  • Url - Sample
    • (string) getUrl()
    • (object) getQueryString(<opt string>)
    • (string) getAnchor(<opt string>)
    • (object) getAnchorString(<opt string>)
    • (object) parseUrl(<string>)
    • (object) currentScriptElement()
    • (string) base64Encode(<string>)
    • (string) base64Decode(<string>)
  • Validator - Sample
    • (bool) mail(<string>)
    • (bool) url(<string>)
    • (bool) isPortuguesePhone(<string>)
    • (bool) isCVPhone(<string>)
    • (bool) isAOPhone(<string>)
    • (bool) isMZPhone(<string>)
  • Variable - Sample
    • (bool) isArray(<var>)
    • (bool) isObject(<var>)
    • (bool) isBoolean(<var>)
    • (bool) isNumber(<var>)
    • (bool) isString(<var>)
    • (bool) isNull(<var>)

 

Os que o Sample der 404 é porque não existe ;)

sinto-me:
música: Primordial - Empire Falls
tags: ,
publicado por suskind às 04:09
link | comentar | ver comentários (3) | favorito

SAPO.Widget.ImageSlide

SAPO.Widget.ImageSlide

Apresentamos mais um componente/widget da LibSAPO.js

 

Exemplo:

 

 

Para o exemplo anterior, o código usado foi este:

 

<!--
ImageSlide
-->

<div id="sapo_widget_imageslide_blogsample"></div>

<script type="text/javascript">
    var option_sapo_widget_imageslide_blogsample = {
    tabs : [
      {    
        id : 'sapo_widget_imageslide_blogsample_tab',
        title : 'Isto é um exemplo',
        elements : [
            {
                title: 'Age of empires II',
                url: 'http://www.sapo.pt/',
                image: 'https://js.sapo.pt/Assets/Images/ImageSlider/age2.gif'
            },
            {
                title: 'Airstrike',
                url: 'http://www.sapo.pt/',
                image: 'https://js.sapo.pt/Assets/Images/ImageSlider/airstrike.jpeg'
            },
            {
                title: 'Atlantis',
                url: 'http://www.sapo.pt/',
                image: 'https://js.sapo.pt/Assets/Images/ImageSlider/atlantis.jpeg'
            },
            {
                title: 'Championship Manager',
                url: 'http://www.sapo.pt/',
                image: 'https://js.sapo.pt/Assets/Images/ImageSlider/cm.jpeg'
            },
            {
                title: 'Colin McRae DiRT',
                url: 'http://www.sapo.pt/',
                image: 'https://js.sapo.pt/Assets/Images/ImageSlider/dirt.jpeg'
            },
            {
                title: 'Fable',
                url: 'http://www.sapo.pt/',
                image: 'https://js.sapo.pt/Assets/Images/ImageSlider/fable.jpeg'
            },
            {
                title: 'Jet fighter',
                url: 'http://www.sapo.pt/',
                image: 'https://js.sapo.pt/Assets/Images/ImageSlider/jet.jpeg'
            },
            {
                title: 'Overlord',
                url: 'http://www.sapo.pt/',
                image: 'https://js.sapo.pt/Assets/Images/ImageSlider/overlord.jpeg'
            },
            {
                title: 'Puzzle',
                url: 'http://www.sapo.pt/',
                image: 'https://js.sapo.pt/Assets/Images/ImageSlider/puzzle.jpeg'
            },
            {
                title: 'Tomb Raider',
                url: 'http://www.sapo.pt/',
                image: 'https://js.sapo.pt/Assets/Images/ImageSlider/tomb2.jpeg'
            },
            {
                title: 'Zoo Tycoon 2',
                url: 'http://www.sapo.pt/',
                image: 'https://js.sapo.pt/Assets/Images/ImageSlider/zoo.jpeg'
            }
        ]
      }
    ],
    visible : 5, 
    image_size : [95,95], 
    visible_area_width : 450, 
    left_control_content: '<img src="https://js.sapo.pt/Assets/Images/ImageSlider/jogos_left.gif" alt="left_control" />',
    right_control_content: '<img src="https://js.sapo.pt/Assets/Images/ImageSlider/jogos_right.gif" alt="right_control"/>'
    };

    new SAPO.Widget.ImageSlider('sapo_widget_imageslide_blogsample', option_sapo_widget_imageslide_blogsample);

</script> 

 

Para outras opções veja o exemplo no seguinte link

publicado por suskind às 00:31
link | comentar | favorito
Quinta-feira, 26 de Fevereiro de 2009

Widget SAPO Spot

Foi lançado um novo widget para os utilizadores do SAPO Spot.

 

Podem partilhar no vosso blogs/página pessoal os vossos amigos do SAPO Spot, os membros de um grupo, os membros do vosso concelho ou os últimos registados.

 

Para saber como utilizar, basta irem às ferramentas do SAPO Spot e criarem a chamada de JavaScript desejada, ou então consultem o post no blog oficial do SAPO Spot.

 

Um exemplo do widget com os membros do grupo "JavaScript" do SAPO Spot.

 

tags: ,
publicado por suskind às 18:29
link | comentar | favorito

.mais sobre mim

.pesquisar

.Outubro 2010

Dom
Seg
Ter
Qua
Qui
Sex
Sab
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

.posts recentes

. Promote JS

. LibSAPO.js - Documentação...

. SAPO.Utility.Date

. SAPO

. LibSAPO.js 2009 -> 2010

. LibSAPO.js no Twitter

. SAPO.Widget.ShareThis

. Mudança para jQuery

. SAPO.Utility.Cookie

. Syntax Highlighter

.arquivos

. Outubro 2010

. Junho 2010

. Janeiro 2010

. Julho 2009

. Junho 2009

. Abril 2009

. Março 2009

. Fevereiro 2009

. Julho 2008

. Junho 2008

.tags

. todas as tags

blogs SAPO

.subscrever feeds

Em destaque no SAPO Blogs
pub