wordkito-widgets
v1.0.18
Published
Package to help you use widgets more easily on your page.
Downloads
4
Readme
��#� �w�o�r�d�k�i�t�o�-�w�i�d�g�e�t�s�
�
�
�
�
�
�W�o�u�l�d� �y�o�u� �l�i�k�e� �t�o� �p�l�a�c�e� �W�o�r�d�k�i�t�o� �t�e�s�t�s� �o�n� �y�o�u�r� �w�e�b�s�i�t�e�?�
�
�
�
�Y�o�u� �c�a�n� �u�s�e� �t�h�e� �l�i�b�r�a�r�y� �y�o�u� �a�r�e� �l�o�o�k�i�n�g� �a�t�!�
�
�
�
�B�u�t� �i�f� �y�o�u�'�r�e� �m�o�t�i�v�a�t�e�d� �t�o� �d�o� �i�t� �y�o�u�r�s�e�l�f�,� �h�e�r�e�'�s� �a� �l�i�n�k� �t�o� �a�n� �e�x�a�m�p�l�e� �o�f� �h�o�w� �t�h�e� �l�i�b�r�a�r�y� �w�o�r�k�s� �u�n�d�e�r�n�e�a�t�h�:�
�
�h�t�t�p�s�:�/�/�c�o�d�e�s�a�n�d�b�o�x�.�i�o�/�s�/�w�o�r�d�k�i�t�o�-�t�e�s�t�-�w�i�d�g�e�t�-�e�x�a�m�p�l�e�-�m�g�e�e�g�8�?�f�i�l�e�=�/�s�r�c�/�A�p�p�.�t�s�x�
�
�
�
�
�
�
�
�#� �I�n�s�t�a�l�l�a�t�i�o�n�
�
��
��b�a�s�h�
�
�n�p�m� �i�n�s�t�a�l�l� �w�o�r�d�k�i�t�o�-�w�i�d�g�e�t�s�
�
�
��
�
�
�
�
�
�
�#� �I�m�p�o�r�t�
�
��
��j�s�
�
�i�m�p�o�r�t� �{� �W�o�r�d�k�i�t�o�W�i�d�g�e�t� �}� �f�r�o�m� �"�w�o�r�d�k�i�t�o�-�w�i�d�g�e�t�s�"�
�
�
��
�
�
�
�
�
�
�#� �U�s�e�
�
��
��j�s�
�
�i�m�p�o�r�t� �{� �W�o�r�d�k�i�t�o�W�i�d�g�e�t� �}� �f�r�o�m� �"�w�o�r�d�k�i�t�o�-�w�i�d�g�e�t�s�"�
�
�
�
�f�u�n�c�t�i�o�n� �A�p�p�(�)�{�
�
� � � � �c�o�n�s�t� �d�e�c�k�I�d� �=� �"�<�i�d�_�o�f�_�y�o�u�r�_�d�e�c�k�>�"� � �/�/� �Y�o�u� �c�a�n� �f�i�n�d� �i�t� �i�n� �t�h�e� �U�R�L� �w�h�e�n� �y�o�u� �e�n�t�e�r� �a� �s�i�n�g�l�e� �d�e�c�k� �o�r� �u�n�d�e�r� �t�h�e� �"�s�h�a�r�e�"� �b�u�t�t�o�n�.�
�
�
�
� � � � �r�e�t�u�r�n� �(�
�
� � � � � � � � �<�d�i�v�>�
�
� � � � � � � � � � � � �<�W�o�r�d�k�i�t�o�W�i�d�g�e�t� �
�
� � � � � � � � � � � � � � � � �d�e�c�k�I�d�=�{�d�e�c�k�I�d�}�
�
� � � � � � � � � � � � �/�>�
�
� � � � � � � � �<�/�d�i�v�>�
�
� � � � �)�
�
�}�
�
�
��
�
�
�
�
�
�
�#� �I�f� �y�o�u� �w�a�n�t� �t�o� �u�s�e� �t�h�e� �t�e�s�t� �r�e�s�u�l�t�s�.�
�
��
��j�s�
�
�i�m�p�o�r�t� �{� �u�s�e�W�i�d�g�e�t�T�e�s�t�,� �W�o�r�d�k�i�t�o�W�i�d�g�e�t� �}� �f�r�o�m� �"�w�o�r�d�k�i�t�o�-�w�i�d�g�e�t�s�"�
�
�
�
�f�u�n�c�t�i�o�n� �A�p�p�(�)�{�
�
� � � � �c�o�n�s�t� �d�e�c�k�I�d� �=� �"�<�i�d�_�o�f�_�y�o�u�r�_�d�e�c�k�>�"� � �/�/� �Y�o�u� �c�a�n� �f�i�n�d� �i�t� �i�n� �t�h�e� �U�R�L� �w�h�e�n� �y�o�u� �e�n�t�e�r� �a� �s�i�n�g�l�e� �d�e�c�k� �o�r� �u�n�d�e�r� �t�h�e� �"�S�h�a�r�e�"� �b�u�t�t�o�n�.�
�
�
�
�
�
� � � � �r�e�t�u�r�n� �(�
�
� � � � � � � � �<�d�i�v�>�
�
� � � � � � � � � � � � �<�W�o�r�d�k�i�t�o�W�i�d�g�e�t� �
�
� � � � � � � � � � � � � � � � �d�e�c�k�I�d�=�{�d�e�c�k�I�d�}�
�
� � � � � � � � � � � � � � � � �o�n�F�i�n�i�s�h�e�d�=�{�(�{�r�e�s�u�l�t�}�)� �=�>� �c�o�n�s�o�l�e�.�l�o�g�(�r�e�s�u�l�t�)�}�
�
� � � � � � � � � � � � �/�>�
�
� � � � � � � � �<�/�d�i�v�>�
�
� � � � �)�
�
�}�
�
�
��
�
�
�
�
�
�
�#� �C�u�s�t�o�m�i�z�e� �a�p�p�e�r�a�n�c�e�
�
��
��j�s�
�
�i�m�p�o�r�t� �{� �u�s�e�W�i�d�g�e�t�T�e�s�t�,� �W�o�r�d�k�i�t�o�W�i�d�g�e�t� �}� �f�r�o�m� �"�w�o�r�d�k�i�t�o�-�w�i�d�g�e�t�s�"�
�
�
�
�f�u�n�c�t�i�o�n� �A�p�p�(�)�{�
�
� � � � �c�o�n�s�t� �d�e�c�k�I�d� �=� �"�<�i�d�_�o�f�_�y�o�u�r�_�d�e�c�k�>�"�
�
�
�
� � � � �r�e�t�u�r�n� �(�
�
� � � � � � � � �<�d�i�v�>�
�
� � � � � � � � � � � � �<�W�o�r�d�k�i�t�o�W�i�d�g�e�t� �
�
� � � � � � � � � � � � � � � � �d�e�c�k�I�d�=�{�d�e�c�k�I�d�}�
�
� � � � � � � � � � � � � � � � �
�
� � � � � � � � � � � � �/�>�
�
� � � � � � � � �<�/�d�i�v�>�
�
� � � � �)�
�
�}�
�
�
��
�
�
�
�
�
�
�